Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: HTML::Template Tutorial

by Anonymous Monk
on Aug 30, 2012 at 20:59 UTC ( [id://990854]=note: print w/replies, xml ) Need Help??


in reply to HTML::Template Tutorial

Would it be possible to use two templates at the same time?

For example say I have a general HTML layout that does not change from page to page, static.html And another one that does change dynamic.html

Can I load the static.html and then load the dynamic.html inside it?

something like this: static.html:
<html> <head></head> <body> dynamic.html would go here </body> </html>

Replies are listed 'Best First'.
Re^2: HTML::Template Tutorial
by jeffa (Bishop) on Mar 23, 2013 at 17:53 UTC
    Howdy! Better late than never i suppose ...

    You can't do this easily with HTML::Template but you can with Template Toolkit. See the WRAPPER directive.

    Cheers!

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
Re^2: HTML::Template Tutorial
by magamo (Initiate) on Apr 09, 2013 at 16:07 UTC
    HTML::Template includes the <TMPL_INCLUDE> tag for just this purpose.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-03-19 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found