Skip to content

How to render templates as strings using lit-html? #4392

Answered by augustjk
idranme asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/lit/lit/tree/main/packages/labs/ssr is meant to produce HTML string from lit-html templates. The generated HTML includes marker comments to serve as hydration points, but also has a server-only html tag function that can be used to signal that it's not meant to hydrate and not produce those marker comments.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by idranme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants