I need you to leave php-thinking today.
Because that kind of thinking makes you build "string-based" template engines, and this is bad.
Obviously it's bad security-wise, string-based engines don't know where they're
merging data in an attribute, a tag name, pure text, or html.
They have a hard time keeping it right because the DOM evolves too fast for them.
The DOM should come first, then templating after.
Embrace the DOM. Don't try:
I've been trying to make something purely DOM based:
however, i recognize the API is odd.
Please help me improve it if you're motivated !