On Tue, Apr 16, 2002 at 11:03:03AM -0700, Bill Moseley wrote:
> If I'm using TT to write out a TT template, is there a good way to escape
> [% and %].
Yep, you can do this:
[% stag = "[\%"
etag = "%\]"
%]
and then:
[% stag; 'hello'; etag %]
Or:
[% TAGS star %]
[% INCLUDE foo %] # not a directive, just plain text, passed through
[* INCLUDE foo *] # is a directive
In version 3 (there's that broken record playing again :-), the current
parser start/end tag will be available as something like:
[% stag = tt.parser.start_tag
etag = tt.parser.end_tag
%]
HTH
A