http://qs1969.pair.com?node_id=990854


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.