I like the idea of using html as its own templating language.
Have you considered using DOMDocument and DOMXpath instead of regex searches?
Have you considered using DOMDocument and DOMXpath instead of regex searches?
One thing I did want was for this framework to be as friendly as possible to designers and junior frontend-ers and I fear xpath is not easy to grasp ...