Re: docFactory at Nevow Elements

[email protected]
Newsgroups gmane.comp.python.twisted.web
Message-ID <20090930202529.1533.1590753640.divmod.xquotient.482@localhost.localdomain>
On 08:10 pm, [email protected] wrote:
>I am using Nevow's LiveElements and I am gettings troubles with the
>docFactory attribute. In the examples I've seen, docFactory =
>loaders.stan(...)
>I'd like to load a string representing my html page[0]
>
>Can this be done? I really don't like stan :)
>
>Greets!
>
>[0] I generate the string using Django's templates systems' 
>render_to_string
>function.

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.

Jean-Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.