[Twisted-web] docFactory at Nevow Elements

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Sep 30 16:25:29 EDT 2009

On 08:10 pm, jjconti at gmail.com wrote:
>I am using Nevow's LiveElements and I am gettings troubles with the
>docFactory attribute. In the examples I've seen, docFactory =
>I'd like to load a string representing my html page[0]
>Can this be done? I really don't like stan :)
>[0] I generate the string using Django's templates systems' 

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.


More information about the Twisted-web mailing list