Archived
d24bb29817
Adds runtime/src/ssr.js: a Node.js SSR engine that parses .el component
source and renders to HTML strings without a DOM. Covers the full template
AST -- elements, text, interpolations, {#if}, {#each}, {#activate}, and
child component recursion.
Every component root element receives hydration markers:
data-el-component, data-el-id, data-el-state
Event bindings (on:click etc.) are preserved as data-el-* attributes so
the client hydration pass can bind them without re-rendering.
Updates Component base class with:
- initialState constructor param for SSR state recovery
- _hydrate(root): binds events on existing DOM, no re-render
- onHydrate() lifecycle hook
Updates dist/el-ui.js bundle to match.