[Templates] Dual pass template processing
Perrin Harkins
perrin at elem.com
Tue Jan 29 20:54:02 GMT 2008
On Jan 29, 2008 3:39 PM, Mark Knoop <mark at rawcane.net> wrote:
> One of the
> features of my system is that one set of tags gets processed when the site
> is built ie the pages are prerendered to an extent. The rest of the tags
> then get processed at request time by my CGI script.
The documentation templates that come with TT demonstrate this. You
basically just adjust the tags to something different for each pass.
http://tt2.org/docs/faq/index.html#section_If_I_m_using_TT_to_write_out_a_TT_template_is_there_a_good_way_to_escape_and_
You can set TAGS from outside the template when you create your Template object.
- Perrin
More information about the templates
mailing list