[Catalyst] HTML::Widget as_xml pretty print

John Beppu john.beppu at gmail.com
Sun Apr 9 04:40:56 CEST 2006


This is what I've been doing to make the output of as_xml readable:

[% form.as_xml | replace('<(?!/textarea)', "\n<") | indent("\t\t") %]

It's probably not as nice as letting XML::LibXML pretty print it, but
it's a technique that's worked for me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060408/13f4ef29/attachment.htm 


More information about the Catalyst mailing list