I've had a question that I've been wondering for a while. I'm making a templating system for front-ends where tags are interpretted (like Smarty). I was wondering if there is value in having the tags be able to communicate with the HTML document and other "Smartyish" tags. I was hoping that the community would have some thoughts on this situation.
Benefits:
Drawbacks:
I think it would make the code much more complex and harder to analyse. Where the main aproach of template engines is to make code easier to understand.
It is not the aim templates to add much programming logic. These should be handled in the PHP script.