Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by sara2005 (Scribe)
on Nov 21, 2006 at 04:25 UTC ( #585194=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use CGI qw/:standard :delete_all :escapeHTML :html3 :all/;
    use HTML::Template; 
    ...
    $template->param( item3 => $item3_val );
    
    print $template->output();
    
  2. or download this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    ...
    
    </body>
    </html>
    
  3. or download this
    use CGI qw/:standard :delete_all :escapeHTML :html3 :all/;
    use HTML::Template; 
    ...
    $template->param( html_output => $html_output );
    
    print $template->output();
    
  4. or download this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    ...
    
    </body>
    </html>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://585194]
Approved by xdg
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-01-28 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?