templates  

Re: [Templates] Removing even more whitespace

Andy Wardley
Mon, 30 Jan 2006 00:28:46 -0800

Paul Makepeace wrote:
> Is there a way to have TT remove this extra whitespace?

Nope, not at present.  It only chomps up to the newline and no further.

> I came up with a solution, but would rather something that's already in
> core.

[...]

> Is there a way to have TT apply this filter to its whole output?

Yep, set the WRAPPER option to point to a template like this:

  [% content FILTER scrunch %]

HTH
A


_______________________________________________
templates mailing list
templates@template-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/templates