[Twisted-web] docFactory at Nevow Elements

Juanjo Conti jjconti at gmail.com
Wed Sep 30 16:37:12 EDT 2009

2009/9/30 <exarkun at twistedmatrix.com>

> There's also nevow.loaders.xmlstr.
> You may not want to bother making a new docFactory for every page
> render, though.  You might want to make a single render function and
> return the string from that, wrapped in nevow.tags.xml.

docFactory = loaders.stan(T.xml(render_to_string('ter.html', {})))

Juanjo Conti
blog: http://www.juanjoconti.com.ar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20090930/36d59660/attachment.htm 

More information about the Twisted-web mailing list