summaryrefslogtreecommitdiff
path: root/src/jinja2/environment.py
Commit message (Collapse)AuthorAgeFilesLines
* async support doesn't require patchinginline-asyncDavid Lord2021-04-101-45/+88
|
* unify/rename filter and function decoratorsDavid Lord2021-04-101-7/+7
| | | | Use pass_context instead of contextfilter and contextfunction, etc.
* add type annotations to filters and testsDavid Lord2021-04-051-1/+1
|
* add 'is filter' and 'is test' testsDavid Lord2021-04-041-33/+62
| | | | | | This required allowing tests to be decorated with '@environmentfilter'. Tests are essentially the same as filters now, the node, compiler, and environment have been refactored to extract common behavior.
* more detailed docs about globalsDavid Lord2021-03-311-41/+80
|
* fix bug with cached templates not using new globalsAmy2021-03-301-0/+10
|
* consistent typing configDavid Lord2021-02-241-3/+3
|
* Setup mypyTeymour Aldridge2020-07-281-1/+4
| | | | | * Add missing type hints (these are intended as an initial set of type hints, to be added upon and improved later) * Setup MyPy to run as a Github Action
* imported templates can see the current globalsAmy2020-06-221-1/+18
| | | | | | | _get_default_module takes an optional context to indicate that the template is imported. If there are differences between the environment and rendered template globals, a new module is used for the imported template.
* apply pyupgrade and f-stringsDavid Lord2020-02-051-24/+23
|
* remove more compat codeDavid Lord2020-02-051-8/+6
|
* remove _compat moduleDavid Lord2020-02-051-24/+13
|
* remove deprecated codeDavid Lord2020-02-051-36/+2
|
* remove Python 2 from docsDavid Lord2020-02-051-6/+6
|
* Use stricter getattr() checks for decorator functionsTomas Krizek2020-02-041-3/+3
| | | | | | | Explicit checks for "is True" prevents unexpected behaviour with objects that are callable and have permissive gettatr(), such as Mock. Fixes #1145
* import Markup from markupsafe, fix flake8 import warningsDavid Lord2020-01-261-2/+3
|
* Revert "rename directory to jinja"revert-renameDavid Lord2020-01-261-0/+1361
| | | | This reverts commit eac9acb7aeabf6f3e0ed4cb876e200e5e72d0d0e.
* rename directory to jinjaDavid Lord2020-01-101-1361/+0
|
* simplify module docstringsstyleDavid Lord2020-01-101-8/+2
|
* more relative importsDavid Lord2020-01-101-3/+3
| | | | | _identifier exports a compiled regex instead of a string to avoid some tricky cleanup
* ensure deprecation warnings mention versionDavid Lord2020-01-101-2/+7
|
* apply flake8David Lord2020-01-101-9/+15
|
* apply blackDavid Lord2020-01-101-153/+213
|
* apply reorder-python-importsDavid Lord2020-01-101-21/+53
|
* move to src directoryDavid Lord2020-01-091-0/+1264