Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Help with Template Workflow

by moritz (Cardinal)
on Aug 29, 2007 at 13:48 UTC ( [id://635799]=note: print w/replies, xml ) Need Help??


in reply to Help with Template Workflow

Since I can't put a template inside a template

But you can, with <TMPL_INCLUDE>.

As for the template names, you can build a hash:

my %templates = ( faq => 'faq.tmpl', home => 'home.tmpl', new => 'news.tmpl', ... );

And instead of calling a function for each page, just read the corresponding template.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found