The two strategies I've seen are multiple delimeter sets as you mention and the 
slightly evil:
[% left = "[" _ "%"; right = "%" _ "]" %]
Then:
[% this = "first pass" %] [% left %] this = "second pass" [% right %]

I'd really recommend the multiple delimeter trick since that is really ugly and bloaty.

The Dumper thing sounds like a pretty bad hack. :)

--mark mills

> I want to render some pages in two steps, so one rendering to flat
> files of items from a database, then another rendering via my good
> friend Apache::Template live.
> 
> Obviously, the [% stuff gets wiped out on the first pass. Can I escape
> them somehow? Or do I have to use differing delimiters for each pass?
> 
> Alternatively, I was thinking of having the first pass write some META
> variable assignments out, is the Dumper plugin as reversible as
> Data::Dumper?


Reply via email to