![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: HTML::Template : How to separate code and html with lesser maintenance issuesby sara2005 (Scribe) |
on Nov 21, 2006 at 23:32 UTC ( #585388=note: print w/replies, xml ) | Need Help?? |
I created some templates like small_template.tmpl
and then read them into $html_output by
This works great but if I wanted to display some values of variables (like , the selected item's name ) using the small_template.tmpl, it doesn't work. Probably, I should have some subrotines to create the html code and then display that using the template. I think it will mix the logic and the html, but it seems inevitable. The best I can do is to have subroutines that create the html messages separated from the logic.
In Section
Seekers of Perl Wisdom
|
|