Sam Tregar wrote:
On Tue, 9 Dec 2003, Lance A. Brown wrote:
# we allow tags like this in our templates that will define values # to be set as parameters # <TMPL_VALUE NAME="name" VALUE="value">
My eyes! It burns! Arrrrrrrgh...
:) I know it goes against your philosophy of HTML::Template, and that this can be abused in nasty ways. But there is one situation where I feel this feature is justified to keep design elements in the templates and code in the code and it has to do with needing dynamic values in include files.
The most obvious example is the <title> tag in a header. I usually include a header and footer include at the top and bottom of my templates. The most anoying thing is to fill in that <title> tag in the header include file. In the past I have resorted to putting this information in the code, but it doesn't belong there. The programmer shouldn't care what the title of the page is, that is the domain of the designer...
I know that you don't mean to state that in an absolute sort of way, because I disagree. I also include headers/footers, and code title and bunch of other things in the headers and footers. Most of the time the title of the page is dynamic precisely because it describes dynamic contents of a page. The designer should not worry about what the title is... the designer should only worry about how the <title> should look.
;-)
Keep it simple. That is why it is fast. That is why it works. That is why it is easy to understand. And that is why we like it here over other blahblah templating systems...
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users