![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( #3333=superdoc: 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 reply to Re^2: HTML::Template : How to separate code and html with lesser maintenance issues
by sara2005
|
|