Frontend Intertag Communication
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-06-13T05:10:06Z
Indexed on
2010/06/13
5:12 UTC
Read the original article
Hit count: 298
Hey all,
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:
- More power (tags can tell other tags how to look)
- Better structure (smartyish tags behave and look just like html tags)
- Tags can manipulate any element on the page
Drawbacks:
- Tags can manipulate any element on the page
- Tags can interfere with other tags
- Code time will increase
© Stack Overflow or respective owner