-
I only want strings, not rendered to DOM. |
Beta Was this translation helpful? Give feedback.
Answered by
augustjk
Nov 22, 2023
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
idranme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.