Re: auto-strip whitespace

Jonathan Swartz <[email protected]> Fri, 27 Jul 2007 11:35:45 -0700
Newsgroups gmane.comp.web.mason.devel
Message-ID <0DD661D5-904C-489A-98A7-C2967A2CD7B7__40291.7190608152$1185561391$gmane$org@pobox.com>
(Switching to mason-users@)

Check out the preprocess and postprocess* params:

     http://www.masonhq.com/docs/manual/Params.html#preprocess

This will be inefficient with lots of component calls, though.

Jon

On Jul 22, 2007, at 6:20 AM, C.J. Adams-Collier wrote:

> Hey there Jon, Dave, list,
>
> Is there an option to HTML::Mason::*Handler or something that would
> apply an implicit
> <%filter>
> s/^\s+//s;
> s/\s+$//s;
> </%filter>
> to every component?
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/