mirror of
https://gitee.com/openharmony/third_party_jinja2
synced 2024-11-23 23:29:58 +00:00
19133d4059
* Add ChainableUndefined allowing getattr & getitem Allows using default values with chains of items or attributes that may contain undefined values without raising a jinja2.exceptions.UndefinedError. >>> import jinja2 >>> env = jinja2.Environment(undefined=jinja2.ChainableUndefined) >>> env.from_string("{{ foo.bar['baz'] | default('val') }}").render() 'val' * Remove class decorator from ChainableUndefined
20 lines
156 B
Plaintext
20 lines
156 B
Plaintext
*.so
|
|
docs/_build/
|
|
*.pyc
|
|
*.pyo
|
|
*.egg-info/
|
|
*.egg
|
|
build/
|
|
dist/
|
|
.DS_Store
|
|
.tox/
|
|
.cache/
|
|
.idea/
|
|
env/
|
|
venv/
|
|
venv-*/
|
|
.coverage
|
|
.coverage.*
|
|
htmlcov
|
|
.pytest_cache/
|