Designating which template produced the output HTML?

Justin Simoni <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
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




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.