Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: HTML::Template Tutorial

by Anonymous Monk
on Aug 30, 2012 at 20:59 UTC ( #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>


Comment on Re: HTML::Template Tutorial
Download Code
Re^2: HTML::Template Tutorial
by jeffa (Chancellor) 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
Node Status?
node history
Node Type: note [id://990854]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-18 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls