docs(agents): note hemplate syntax gotchas

This commit is contained in:
slhx agent
2026-05-26 07:15:27 +02:00
parent 625f797ff1
commit 28ee1b5111
+1
View File
@@ -52,4 +52,5 @@ Keep it stable. Prefer pointers to canonical sources over copied structure, file
- slhx core stays small: effects, typed ids, registries, and wire schema only.
- Routing, auth, sessions, transport, transitions, sync, and storage belong in integration/user crates.
- Public examples and beginner APIs should use generated resources and `IntoEffect`, not raw ids or runtime opcodes.
- Hemlate examples must use real hemplate syntax, not Vue/Handlebars sketches: `{+ expr +}` for escaped text, `{+= expr =+}` only for trusted/rendered HTML, `+attr="expr"` for dynamic attributes, and Rust-shaped `h-if`, `h-for`, `h-match`, `h-case` directives (`h-case="_"` is the default arm).
- JS runtime changes must preserve root-scoped lookup and avoid selectors, VDOM, expressions, and per-node listeners.