[Twisted-web] nevow/stan + pregenerated HTML

Mike Warren spam at mike-warren.com
Wed Jun 2 15:59:36 MDT 2004


I'm using Nevow+Twisted, and want to do something like this:

|     def render_something(self,context,data):
|         pregeneratedHTML = someComplexFunctionReturningStringOfHTML()
|         context.tag[ pregeneratedHTML ] # my problem here
|         otherstuff = []
|         return context.tag[otherstuff]

What I'm looking for is some way to get Nevow to not quote all the
stuff in the pregeneratedHTML string. (FWIW, I'm using docutils to
generate HTML from ReStructuredText markup, so switching this to use
stan would be a lot of work).

Is there any way to do this? Ideas?


mike [at] mike [dash] warren [dot] com
gpg --keyserver --recv-key 579911BD
87F2 4D98 BDB0 0E90 EE2A 0CF9 1087 0884 5799 11BD

More information about the Twisted-web mailing list