class InternationalizationExtension(Extension):
Method | __init__ |
Undocumented |
Method | _extract |
Undocumented |
Method | _install |
Undocumented |
Method | _install_callables |
Undocumented |
Method | _install_null |
Undocumented |
Method | _make_node |
Generates a useful node from the data provided. |
Method | _parse_block |
Parse until the next block tag with a given name. |
Method | _trim_whitespace |
Undocumented |
Method | _uninstall |
Undocumented |
Method | parse |
Parse a translatable tag. |
Class Variable | tags |
Undocumented |
Inherited from Extension
:
Method | attr |
Return an attribute node for the current extension. This is useful to pass constants on extensions to generated template code. |
Method | call_method |
Call a method of the extension. This is a shortcut for attr + jinja2.nodes.Call . |
Method | filter_stream |
No summary |
Method | preprocess |
This method is called before the actual lexing and can be used to preprocess the source. The filename is optional. The return value must be the preprocessed source. |
Class Variable | identifier |
Undocumented |
Method | __init_subclass__ |
Undocumented |
Method | bind |
Create a copy of this extension bound to another environment. |
Class Variable | priority |
Undocumented |
Instance Variable | environment |
Undocumented |
jinja2.ext.Extension.__init__
Undocumented
Parameters | |
environment:Environment | Undocumented |
Undocumented
Parameters | |
source:t.Union[ | Undocumented |
gettext_functions:t.Sequence[ | Undocumented |
Returns | |
t.Iterator[ | Undocumented |
Undocumented
Parameters | |
translations:_SupportedTranslations | Undocumented |
newstyle:t.Optional[ | Undocumented |
Undocumented
Parameters | |
gettext:t.Callable[ | Undocumented |
ngettext:t.Callable[ | Undocumented |
newstyle:t.Optional[ | Undocumented |
pgettext:t.Optional[ | Undocumented |
npgettext:t.Optional[ | Undocumented |
Parameters | |
singular:str | Undocumented |
plural:t.Optional[ | Undocumented |
variables:t.Dict[ | Undocumented |
plural_expr:t.Optional[ | Undocumented |
vars_referenced:bool | Undocumented |
num_called_num:bool | Undocumented |
Returns | |
nodes.Output | Undocumented |
Parameters | |
parser:Parser | Undocumented |
allow_pluralize:bool | Undocumented |
Returns | |
t.Tuple[ | Undocumented |
Undocumented
Parameters | |
string:str | Undocumented |
_ws_re:t.Pattern[ | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
translations:_SupportedTranslations | Undocumented |
jinja2.ext.Extension.parse
Parameters | |
parser:Parser | Undocumented |
Returns | |
t.Union[ | Undocumented |