summaryrefslogtreecommitdiff
path: root/src/jinja2/nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* unify/rename filter and function decoratorsDavid Lord2021-04-101-11/+11
| | | | Use pass_context instead of contextfilter and contextfunction, etc.
* add 'is filter' and 'is test' testsDavid Lord2021-04-041-35/+40
| | | | | | 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.
* add required attribute to blocksAmy2021-01-291-2/+6
| | | | | required blocks must be overridden at some point, although not necessarily by the direct child template
* detect custom async filters in as_constRichard Gibson2020-10-311-4/+7
|
* Setup mypyTeymour Aldridge2020-07-281-4/+6
| | | | | * 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
* apply pyupgrade and f-stringsDavid Lord2020-02-051-30/+16
|
* remove more compat codeDavid Lord2020-02-051-12/+5
|
* remove _compat moduleDavid Lord2020-02-051-21/+6
|
* remove Python 2 from docsDavid Lord2020-02-051-2/+2
|
* 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-1/+2
|
* Revert "rename directory to jinja"revert-renameDavid Lord2020-01-261-0/+1087
| | | | This reverts commit eac9acb7aeabf6f3e0ed4cb876e200e5e72d0d0e.
* rename directory to jinjaDavid Lord2020-01-101-1087/+0
|
* simplify module docstringsstyleDavid Lord2020-01-101-12/+3
|
* apply flake8David Lord2020-01-101-3/+3
|
* apply blackDavid Lord2020-01-101-145/+225
|
* apply reorder-python-importsDavid Lord2020-01-101-4/+5
|
* move to src directoryDavid Lord2020-01-091-0/+1015