I don't quite understand.
The DOM is/needs a functional API.
Why bolt another DSL on top?
Now you have to find a way for javascript to interact with your template language.
While functions are sufficient. That doesn't look like orthogonal language design.
replies(2):