@li3/ssr 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,7 +46,7 @@ classes, styles, `<template if>`, `<template for>`, `<template component>`, and
46
46
  </template>
47
47
 
48
48
  <ul>
49
- <template for="item of items">
49
+ <template foreach="item of items">
50
50
  <li>{{ item }}</li>
51
51
  </template>
52
52
  </ul>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@li3/ssr",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Server-side rendering for @li3/web applications using a virtual server DOM",
5
5
  "exports": {
6
6
  ".": {
@@ -12,7 +12,7 @@
12
12
  "url": "https://github.com/apphorde/lithium"
13
13
  },
14
14
  "dependencies": {
15
- "@li3/web": "0.2.37",
15
+ "@li3/web": "0.2.40",
16
16
  "jsdom": "^29.1.1"
17
17
  },
18
18
  "devDependencies": {
@@ -55,7 +55,7 @@ describe('renderPage', () => {
55
55
  it('renders for-loops with per-row context', async () => {
56
56
  const app = `<!doctype html><html><body>
57
57
  <template app>
58
- <ul><template for="[t, i] of todos"><li>{{ i }}: {{ t.title }}</li></template></ul>
58
+ <ul><template foreach="[t, i] of todos"><li>{{ i }}: {{ t.title }}</li></template></ul>
59
59
  <script setup>
60
60
  import { ref } from '@li3/web';
61
61
  export default function () {