Use a different tag style in your metatemplates... ala <$ $> or something.

Alternately, if you want you can make template entries "b" and "e" or the like that 
return "[%" and "%]"
and do this:

[% "$b tag $e" %]

--mark

> -----Original Message-----
> From: Bill Moseley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: [Templates] Escaping [% and %]
> 
> 
> If I'm using TT to write out a TT template, is there a good 
> way to escape
> [% and %].
> 
> I tried something like this thinking the single quotes would 
> rescue me:
> 
>     [% '[% "hello" %]' %]
> 
> This works, but is not pretty:
> 
>     [% '[' %]% "hello" %[% ']' %]
> 
> 
> 
> -- 
> Bill Moseley
> mailto:[EMAIL PROTECTED]
> 
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates
> 


Reply via email to