1
2
3
4
5
6
7
8
9
10
11
12
export let litExample = (async () => {
const { html } = await import("npm:lit");
const { render } = await import("npm:@lit-labs/ssr");
const { collectResult } = await import(
"npm:@lit-labs/ssr/lib/render-result.js"
);
const name = "Tom";
const page = html`<div>
Hello ${name}
</div>`;
return collectResult(render(page));
})();