I'm having difficulties with rewriting ISML-Templates to lit-html.
e.g.
<isset name="Variable" value="${pdict.variable}" scope="page" />
How does the isml tag <isset>
work for lit-html?
I'm having difficulties with rewriting ISML-Templates to lit-html.
e.g.
<isset name="Variable" value="${pdict.variable}" scope="page" />
How does the isml tag <isset>
work for lit-html?
Copyright © 2021 Jogjafile Inc.
Lit-html speaks regular HTML. You can define any custom element you want, but
<isset>
is neither a standard nor a custom element. Meaning,<isset>
element doesn't work with lit-html per-se, rather, lit-html takes your template and updates the DOM efficiently with it. If you have some other code on the page which is parsing the rendered<isset>
elements, that's fine, you can use lit-html to render them.lit-html will render nodes as you write them, although it will transform that self-closing tag to a normal tag.
Rendered output: