Coming from Vue I was really surprised it does a lot of what Vue templating does, including attaching events, with just vanilla JS templates. And when you use VSCode lit extension, you get syntax highlighting and full type checking inside the templates.
I learned about lit-html after a tweet from Marc Grabanski, where he said he used lit-html with vanillajs, not Lit.
After some experimenting I found it works great and it seems like you are trying to solve something very similar.
When you use the lit-html template package you can do basically evetything that is described in the Templates chapter
Coming from Vue I was really surprised it does a lot of what Vue templating does, including attaching events, with just vanilla JS templates. And when you use VSCode lit extension, you get syntax highlighting and full type checking inside the templates.
I learned about lit-html after a tweet from Marc Grabanski, where he said he used lit-html with vanillajs, not Lit.
After some experimenting I found it works great and it seems like you are trying to solve something very similar.
When you use the lit-html template package you can do basically evetything that is described in the Templates chapter
https://lit.dev/docs/templates/overview/
... without all the other abstraction of components that are part of lit-element.
https://lit.dev/docs/libraries/standalone-templates/#renderi...