Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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>

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?
[Discipulus]: not even in Canada is easy to find a decent job
Discipulus was a question
[GotToBTru]: current job found me
Discipulus is so lucky to have a decent job, with old, favorable contract, done before the ultralibersm arrived in Eataly
[Lady_Aleena]: Has anyone here ever use pcregrep? I can't seem to get the --include regex right. --include=*.p[lm] works in grep but not pcregrep.
[erix]: to lift your spirits, here is some more happy Randy news...
[Lady_Aleena]: The reason I would like to use pcregrep is because it can do multiline searches supposedly.
[perldigious]: What are your criteria for looking Tanktalus? What things must a job have for you to consider it? And where are you in your career? Start, middle, or end?
[erix]: are there any regex-engines that do not do multiline?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-05-23 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?