Separating Html Code from Perl Code
Adam McDaniel · 2010
This chapter contains sections titled: Understanding the Benefits of Separating HTML from Perl Introducing the Perl HTML::Template Module Understanding the Structure of an HTML::Template File Create a New Template File Import the HTML::Template Module Display Data with TMPL_VAR Control Template Content with TMPL_IF, TMPL_ELSE Repeat Template Content with TMPL_LOOP Nest Templates with TMPL_INCLUDE Create an HTML::Template Header and Footer Create an HTML::Template Toolbar Link the Header, Toolbar, and Footer with Dynamic Perl Content Extend HTML::Template to Non-HTML Formats