Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
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
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 wandering the Monastery: (8)
As of 2015-07-29 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls