http://www.scala-lang.org/docu/files/api/scala/xml/PrettyPrinter.html
But this can be done today using: val responseTransformers = RulesSeq
[LiftResponse => LiftResponse]
LiftRules.responseTransformers.append {
case response => // do some LiftResponse pattern matching here for
and XhtmlResponse, take the NodeSeq and run it against the pretty
printer above.
// and return the new XhtmlResponse
}
Br's,
Marius
On Nov 10, 8:37 am, David Pollak <[email protected]>
wrote:
> On Mon, Nov 9, 2009 at 3:28 PM, Peter Robinett <[email protected]>wrote:
>
>
>
> > How hard would this be to implement?
>
> Does a Scala XML pretty-printer exist?
>
> If one does, I could see adding a NodeSeq => NodeSeq function near the end
> of the rendering pipeline.
>
>
>
> > I'm a big fan of pretty HTML
> > output, so I'd be interested in implementing this if it's not too
> > hard.
>
> > Peter Robinett
>
> > On Nov 7, 7:06 am, David Pollak <[email protected]> wrote:
> > > On Sat, Nov 7, 2009 at 1:01 AM, aw <[email protected]> wrote:
>
> > > > Is there a mode whereby I can turn on pretty printed output for my
> > > > xhtml? (I'm thinking of a LiftRule, I think?). Preferably, I'd also
> > > > like to control some details like indentation size.
>
> > > No mode for that... sorry.
>
> > > --
> > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > Follow me:http://twitter.com/dpp
> > > Surf the harmonics
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Surf the harmonics
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---