I was thinking it would be nice using something like
lit-html and get rid of the backslash.
It looks nice until you start to get into nested templates via things like if, repeat, etc. Then it gets nasty real quick. I’ve been watching lit-html and similar approaches for a long time and have done some prototyping with them. I don’t think that’s the way we want to go. I think we’re more likely to enable a single-file approach via HTML where you would have script, template, and style tags in a single file. This is similar to what some other frameworks are doing and we can easily write bundler plugins and AOT optimizations for this pattern.