Code to add some basic nevow functionality back to twisted.
This needs to be imported as early as possible after importing twisted.web for the first time.
The features were adding include:
have nevow tag syntax again.
swallow attributes with None values in tags
(Ab)use slotData to manage what was nevow:data, pass it into the render method as tag.slotData
functions are allowed as render values
a thing to stick into stan trees that can write whatever it wants into the serialised result.
Just override getContent and return a byte string from it.
Tag(tagName, attributes=None, children=None, render=None, filename=None, lineNumber=None, columnNumber=None, data=None)[source]¶