Aug 26, 2011, 3:38 PM
Post #3 of 3
On Aug 26, 2011, at 6:50 AM, Greg Heo wrote:
> You could use a Mason <%filter> block. Inside that block, $_ will be the current output so you can just edit it in-place. You could put this right on the autohandler or inside a template depending on your setup (I do this on element templates to convert them from Markdown myself).
> I'm sure there's a CPAN module to do the indenting. If it works on fragments of HTML as well as on entire HTML documents, so much the better.
I tend to just format my Mason templates *just so* to get indenting right. But it's silly.
Thinking about a Template::Declare burner, though…