Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Abstracting away layout details when using large HTML::Template-based sites?

by skx (Parson)
on Dec 08, 2007 at 17:31 UTC ( [id://655845]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <html>
     <head>
    ...
      <!-- tmpl_include name='page.inc' -->
     </body>
    </html>
    
  2. or download this
    <h2><!-- tmpl_var name='title' --></h2>
    
  3. or download this
    my $template = HTML::Template->new( filename => 'layout.tmpl' );
    $template->param( title => "Steve" );
    print $template->output();
    
  4. or download this
     <!-- tmpl_include name='<!-- tmpl_var name='filename' -->'>
    
  5. or download this
    
    #
    ...
    $template->param( title => "Something here" );
    
    print $template->output();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found