[Twisted-web] nevow/stan + pregenerated HTML

Mary Gardiner mary-twisted at puzzling.org
Wed Jun 2 17:23:08 MDT 2004

On Wed, Jun 02, 2004, Mike Warren wrote:
> 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).

tags.xml does this:

    from nevow import tags

    def render_something(self,context,data):
        pregeneratedHTML = someComplexFunctionReturningStringOfHTML()

        otherstuff = []

        return context.tag[otherstuff]

This is mentioned in the wiki FAQ:


More information about the Twisted-web mailing list