in reply to Re^2: When to use templates?
in thread When to use templates?
*Purest Alert*
Why do you need complex IF statements in your template? samtregar's idea for HTML::Template was to separate the two. If you introduce complexity into your template you create a Meta-language where code and data are again mixed. And designers get confused :)
I believe its much better to leave complex stuff in Perl which is very good at handling it and output the appropriate data to the template from there.
I do make use of HTML::Template's simple IF statements (and I wish there was an elseif) but beyond them I don't think its appropriate to further extend a meta-language.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: When to use templates?
by MidLifeXis (Monsignor) on Nov 19, 2004 at 19:56 UTC | |
Re^4: When to use templates?
by zejames (Hermit) on Nov 19, 2004 at 17:12 UTC |