[Templates] Chomp Directive?

Josh Rosenbaum josh@infogears.com
Thu, 22 Mar 2007 13:03:15 -0600


Sean McAfee wrote:
> On 3/22/07, *Josh Rosenbaum* <josh@infogears.com 
> <mailto:josh@infogears.com>> wrote:
> 
>     It would be nice to have a tag to control the chomping method in TT
>     similar to the
>     TAGS directive. (ie: [% TAGS <! !> %])
> 
> Maybe make it a scoped block, with a corresponding END directive, to 
> prevent spooky action-at-a-distance?
> 
> Thinking more generally, maybe a directive to change a range of parser 
> attributes (ANYCASE, INTERPOLATE, etc) in a scoped fashion.

That's a good idea if it isn't any harder. If I get the time and the general consensus is that this patch would be ok, then I'll look into that as well.

-- Josh