How is this like PHP (didn't touch PHP in 8 years)?
It is closer to hyperHTML or JSX with different syntax I think.
HTML as strings in the middle of your program - yuck! same applies to JSX by the way.
Hm, I believe that the templates will be inlined in your elements in build step. Or at least easly can be, since I also did components with separate preprocessed css, separate js and HTML template.