| 
  | attach(cls,
        template,
        stream,
        value,
        namespaces,
        pos)
    Class Method
 |  |  Called after the template stream has been completely parsed. This class method should return a (directive, stream) tuple. If
directive is not None, it should be an instance of the Directive
class, and gets added to the list of directives applied to the substream
at runtime. streamis an event stream that replaces the original
stream associated with the directive. 
    Parameters:
        template- the Template objectstream- the event stream associated with the directivevalue- the argument value for the directive; if the directive was
specified as an element, this will be an Attrs instance
with all specified attributes, otherwise it will be aunicodeobject with just the attribute valuenamespaces- a mapping of namespace URIs to prefixespos- a (filename, lineno, offset) tuple describing the
location where the directive was found in the sourceOverrides:
        Directive.attach
        (inherited documentation) |