@westbrook @davatron5000 @stubbornella I suspect this might overlap with existing #HtmlModules work.
Also one more idea similar to 1.:
5. Could we use this format to do the initial render of a component? By which I mean that #Angular compiles components to #JavaScript which looks like:
```
function renderComponent() {
if (initialRender) {
createComponentDom();
} else {
updateExistingDom();
}
}
```
This always bugged me as inefficient, because the first branch is only ever executed once per component instance. If we compiled components to this SFC format, could we just do the first render at compile time, generate the HTML directly and drop that `createComponentDom` function?
I'm not knowledgeable enough to say that definitely makes sense, but I think it's an interesting idea at least.
Not sure if other frameworks could benefit from similar optimizations, I suspect #React would not, but I'm less clear on non-#VDom frameworks.