Discussion:
[Mason-devel] auto-strip whitespace
C.J. Adams-Collier
2007-07-22 13:20:31 UTC
Permalink
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?

You are deeply missed, Jon...

Cheers,

C.J. &amp; Co.
--
moo.
Jonathan Swartz
2007-07-27 18:35:45 UTC
Permalink
(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
Post by C.J. Adams-Collier
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?
Loading...