feat: SSG hydration support + CLI v2.0.0 references#43
Open
ErickXavier wants to merge 6 commits intomainfrom
Open
feat: SSG hydration support + CLI v2.0.0 references#43ErickXavier wants to merge 6 commits intomainfrom
ErickXavier wants to merge 6 commits intomainfrom
Conversation
Single-root templates now attach __ctx directly on the root element instead of wrapping it in a div[display:contents]. This fixes HTML table semantics (tbody>tr), reduces DOM node count, and eliminates broken CSS selectors caused by intermediate div elements. Multi-root templates still use the wrapper div as a grouping host.
…sion support, and documentation - Extract expression parser into src/parser.js (shared with CLI compiler) - Add src/compiled.js utility for reading data-nojs-e attributes - Add NoJS._compiled, NoJS._factories, NoJS._filters to public API - Add compiled function lookup in all directives (bind, styling, events, conditionals, loops) - Add factory function support in each/foreach loops - Add template descriptor shortcut in registry - Add Proxy set trap write-back to owning context - Add always-notify on reconciliation for in-place mutations - Add fine-grained dependency tracking, LIS reorder, DOM write caching - Add compilation.md docs + compilation.tpl template + i18n keys (5 locales) - Update marketing claims: "no build step" → "no required build step" - Update README, index.html, llms.txt, landing/features/faq locales - All 1349 tests passing
Replace all references to the old Node.js CLI commands with the new Rust CLI equivalents across docs, templates, and all 5 locale files.
- Add NoJS reference to reactive context proxy (get + has traps) - Add NoJS to _buildScope() for _execStatement (then, on:click, etc.) - Pass $el to call directive's then expression for anchor support - Store NoJS reference via _setNoJS() in globals
- Remove src/directives/dnd.js and related test/docs (moved to Elements) - Update locales (en/es/pt/it) with compiler and SSG shell/docs strings - Update cheatsheet, playground engine, and sitemap
1eba0f0 to
4af7973
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_hasSSRand_getSSRTypeincompiled.jsandglobals.jsfor SSG hydration detectionbinding.js,conditionals.js,loops.js, andstyling.jsnow preserve server-rendered DOM during hydrationprebuild→build,dev→serve) for CLI v2.0.0docs/assets/; dist bundles removed from version controlTest plan
_hasSSRcorrectly detects server-rendered elements withdata-nojs-ssrattributes_getSSRTypereturns the correct SSR type stringnpm test)🤖 Generated with Claude Code