Class n.s.Comment(Tag):

Part of nevow.stan View Source View In Hierarchy

Undocumented

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
582 Method __call__ Change attributes of this tag. This is implemented using

Inherited from Tag:

Line # Kind Name Docs
181 Method __init__ Undocumented
197 Method fillSlots Remember the stan 'slotValue' with the name 'slotName' at this position
207 Method patternGenerator Returns a psudeo-Tag which will generate clones of matching
226 Method allPatterns Return a list of all matching pattern tags, cloned.
237 Method onePattern Return a single matching pattern, cloned.
316 Method __getitem__ Add children to this tag. Multiple children may be added by
341 Method __iter__ Prevent an infinite loop if someone tries to do
353 Method precompilable Is this tag precompilable?
377 Method clone Return a clone of this tag. If deep is True, clone all of this
408 Method clear Clear any existing children from this tag.
415 Method __repr__ Undocumented
425 Method freeze Freeze this tag so that making future calls to __call__ or __getitem__ on the
Line # Kind Name Docs
582 Method __call__ Change attributes of this tag. This is implemented using
316 Method __getitem__ Add children to this tag. Multiple children may be added by
181 Method __init__ Undocumented
341 Method __iter__ Prevent an infinite loop if someone tries to do
415 Method __repr__ Undocumented
226 Method allPatterns Return a list of all matching pattern tags, cloned.
408 Method clear Clear any existing children from this tag.
377 Method clone Return a clone of this tag. If deep is True, clone all of this
197 Method fillSlots Remember the stan 'slotValue' with the name 'slotName' at this position
425 Method freeze Freeze this tag so that making future calls to __call__ or __getitem__ on the
237 Method onePattern Return a single matching pattern, cloned.
207 Method patternGenerator Returns a psudeo-Tag which will generate clones of matching
353 Method precompilable Is this tag precompilable?
def __call__(self, **kw): (source)
Change attributes of this tag. This is implemented using __call__ because it then allows the natural syntax:
 table(width="100%", height="50%", border="1")

Attributes may be 'invisible' tag instances (so that a(href=invisible(data="foo", render=myhrefrenderer)) works), strings, functions, or any other object which has a registered flattener.

If the attribute is a python keyword, such as 'class', you can add an underscore to the name, like 'class_'.

A few magic attributes have values other than these, as they are not serialized for output but rather have special purposes of their own:
  • data: The value is saved on the context stack and passed to render functions.
  • render: A function to call that may modify the tag in any way desired.
  • remember: Remember the value on the context stack with context.remember(value) for later lookup with context.locate()
  • pattern: Value should be a key that can later be used to locate this tag with context.patternGenerator() or context.allPatterns()
  • key: A string used to give the node a unique label. This is automatically namespaced, so in span(key="foo")[span(key="bar")] the inner span actually has a key of 'foo.bar'. The key is intended for use as e.g. an html 'id' attribute, but will is not automatically output.
  • macro - A function which will be called once in the lifetime of the template, when the template is loaded. The return result from this function will replace this Tag in the template.
API Documentation for Nevow, generated by pydoctor.