[htmltmpl] Designating which template produced the output HTML?
Brought to you by:
samtregar
From: Justin S. <ju...@sk...> - 2005-07-30 21:54:11
|
Hello all, Recently, I ripped out most of the inline HTML from within a large app I've been working for some time and converted the mix of CGI.pm method's, inline HTML, and the ilk into HTML::Template templates, in the hopes that it would foster greater collaboration with people who may not know Perl, or want to deal with the sloppy coding I put forth. Long story short, it's been very incredibly helpful in meeting this goal - so, go go HTML::Template! With collaboration, one of my developers is making sure all the templates are XHTML compatible and is running into an issue of not always knowing which template outputting what code (original post: http://mojo.skazat.com/cgi-bin/dada/mail.cgi/archive/dadadev/ 20050730124002/ ) - Does anyone have any best practices in labeling the code that each template creates? For example, he proposed that we simply use HTML comments and wrap the template itself around them. For example: <!-- start [template_name].tmpl --> and <!-- end [template_name].tmpl --> What do you guys do? Cheers, Justin Simoni -- :: is an eccentric artist, living and working in Denver, Colorado :: URL: http://justinsimoni.com :: PHO: 720.436.7701 :: Mailing List - http://justinsimoni.com/mailing_list.html |