Steve Wells wrote:
> Hi All,
> 
>  
> 
> Can anybody help me out pretty urgently? Thanks in advance.
> 
>  
> 
> Basically, to get some code out of the door this week, I need to be able 
> to pre-process Template::Toollkit templates, i.e. create a single 
> template consiting of all it's included files, but not having any vars 
> processed. This is to do with our bespoke caching solution.
> 
>  
> 
> If I can get just this out of the door, I can start convincing them to 
> compile templates, and use the proper cache!

Probably the most common way to solve this type of problem is using 
different tag sets for your first and second pass.  So, you might have 
something that looks like:

[* INCLUDE header *]
Welcome: [% user %]

See this recent thread for more info:

http://lists.template-toolkit.org/pipermail/templates/2008-January/009964.html

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to