Re: [htmltmpl] Leaving tmp_var intact inside template
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2008-08-03 15:54:40
|
On Tue, Jul 29, 2008 at 09:01:45AM -0400, Brad Baxter wrote: >Using !TMPL_VAR would allow for "3-pass" or "n-pass" templating. That >is, change !TMPL_VAR to TMPL_VAR on each pass. If you then have >!!TMPL_VAR, it survives to the third pass. > >I actually do this (albeit with a different templating system), though I can >recall only a couple of times I ever needed !!. I'm using something similar at work - though my syntax is "2MPL_VAR" (which is similarly extensible, though I haven't needed a 3-pass system yet). The entire static page tree of the site is run through an H::T pass before upload to generate navigation data (headers, footers, etc.), so any actual template-based content needs special treatment. Roger |