jinja2.ext.with_.attr¶
-
with_.
attr
(name, lineno=None)¶ Return an attribute node for the current extension. This is useful to pass constants on extensions to generated template code.
self.attr('_my_attribute', lineno=lineno)
with_.
attr
(name, lineno=None)¶Return an attribute node for the current extension. This is useful to pass constants on extensions to generated template code.
self.attr('_my_attribute', lineno=lineno)