Lines Matching refs:extension
8 extension.
33 """Gives the extension an unique identifier."""
41 class Extension(with_metaclass(ExtensionRegistry, object)):
45 this is that an extension can be bound to another environment (for
51 by their import name. The correct way to configure the extension is
57 name as includes the name of the extension (fragment cache).
60 #: if this extension parses this is the list of tags it's listening to.
63 #: the priority of that extension. This is especially useful for
74 """Create a copy of this extension bound to another environment."""
108 """Return an attribute node for the current extension. This is useful
119 """Call a method of the extension. This is a shortcut for
156 class InternationalizationExtension(Extension):
157 """This extension adds gettext support to Jinja2."""
160 # TODO: the i18n extension is currently reevaluating values in a few
168 Extension.__init__(self, environment)
390 class ExprStmtExtension(Extension):
402 class LoopControlExtension(Extension):
413 class WithExtension(Extension):
434 class AutoEscapeExtension(Extension):
582 for extension in options.get('extensions', '').split(','):
583 extension = extension.strip()
584 if not extension:
586 extensions.add(import_string(extension))