[Twisted-web] How do I add a doctype using stan?
Michael M
m.milvo at gmail.com
Thu Feb 9 09:03:42 MST 2006
Thanks Matt, that did the trick. When I get a moment I will stick it
on the nevow wiki.
Michael
> loaders.stan only takes one arg so put the tags.xml and the tags.html
> top node in a tuple or list. The second arg is the name of the pattern
> to extract from the template in the first arg.
>
> docFactory = loaders.stan(
> (
> tags.xml('DOCTYPE etc etc'),
> tags.html[
> tags.head[tags.title['Help']],
> tags.body['How do I add a doctype']
> ]
> )
> )
>
>
> - Matt
>
> --
> __
> / \__ Matt Goodall, Pollenation Internet Ltd
> \__/ \ w: http://www.pollenation.net
> __/ \__/ e: matt at pollenation.net
> / \__/ \ t: +44 (0)113 2252500
> \__/ \__/
> / \ Any views expressed are my own and do not necessarily
> \__/ reflect the views of my employer.
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
More information about the Twisted-web
mailing list