Document async-htm-to-string as an HTM-style rendering option#247
Document async-htm-to-string as an HTM-style rendering option#247bcomnes wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds documentation for using async-htm-to-string as a Preact-free option for server-side HTML rendering in DomStack, addressing #239.
Changes:
- Documented
async-htm-to-stringas a string-rendering alternative tohtm/preact+preact-render-to-string - Included examples and highlighted key behavioral differences and gotchas (attribute naming,
awaitusage,rawHtml()XSS risk)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Coverage Report for CI Build 28276669827Coverage increased (+0.02%) to 92.731%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9308a93 to
ac75399
Compare
ac75399 to
9d7d68a
Compare
9d7d68a to
2f5877f
Compare
Closes #239
DomStack now defaults to
fragtmlfor the bundled/ejected base layout because that path only needs safe string manipulation. This PR documentsasync-htm-to-stringas another good Node-side rendering option for people who prefer the familiarhtmtagged-template style, including projects that also use Preact for browser-side components.This adds a "Using async-htm-to-string for HTM-style string rendering" subsection at the end of the TypeScript Support section covering:
fragtmldefault andhtm/preactusageasync-htm-to-stringhtmltag, and the XSS risk ofrawHtml()rawHtml()for trusted inner content