[Templates] Deciding which template to execute at runtime
Anthony Gardner
cyclewood_ltd at yahoo.co.uk
Sat Oct 6 11:34:32 BST 2007
I've looked through the docs, more than a year of mail archives and googled but was unable to find an answer. Either looking in the wrong place or not hard enough.
At present, we have a standard set of templates but in the future, we may need to deliver the same data but in a different style. This will be set using a query string parameter.
As the $tt is created as a singleton one / process (mod_perl) and the paths defined once, can someone tell me of a simple way round this.
I've thought of just having a generic template entry point and then calling the desired starting template based on a simple IF ELSE but hopefully there's a TT configuration way.
I'm sure this has been asked before but just can;t find the answer :(
CIA
-Ants
Disclaimer: Technically, I'm always wrong!!
---------------------------------
For ideas on reducing your carbon footprint visit Yahoo! For Good this month.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.template-toolkit.org/pipermail/templates/attachments/20071006/51f948d0/attachment.htm
More information about the templates
mailing list