http://qs321.pair.com?node_id=585338


in reply to HTML::Template : How to separate code and html with lesser maintenance issues

It doesn't look like there's a good reason for all three of those to be in the one template. Your example above would be fine and contain no HTML if you made those $html_output assignments call small templates to generate their HTML, rather than in-lining it. Or you could pull the header and footer stuff out into includes, so you'd just call different main templates for each case and they would all make include calls for the header and footer.