jinja icon indicating copy to clipboard operation
jinja copied to clipboard

A very fast and expressive template engine.

Results 150 jinja issues
Sort by recently updated
recently updated
newest added

This PR adds the attributes `clear` and `pop` on `MutableSequence` to the default `modifies_known_mutable` check used by `ImmutableSandboxedEnvironment`. fixes #2032 Let me know if I should add an entry to...

This change fixes the indent filter so that it can support any line break sequence, including line feed (LF), carriage return line feed (CRLF), and carriage return (CR), whichever newline...

I hit this bug in two different ways, and I don't know if they have separate fixes or not. The easy reproduction is, even accounting for the lack of positional-only...

Fix pickle/copy support for the `missing` singleton: * Fix pickle support for the `missing` singleton. * Add unit test for pickling the `missing` singleton. * Add unit test for copying...

Restores erroneous deletions of `__slots__` metadata from `Undefined` types that breaks various serialization/copy mechanisms on Python >= 3.6. Also: * fix ChainedUndefined to raise AttributeError on unimplemented dunder methods to...

The `jinja2.utils.missing` singleton instance cannot be pickled since pickle cannot find `MissingType` due to the `jinja2.utils.MissingType` attribute not existing: ```python import pickle import jinja2.utils pickle.dumps(jinja2.utils.missing) ``` Running the above code...

### Description Due to [an ancient erroneous deletion of `__slots__` metadata](https://github.com/pallets/jinja/blob/3.1.4/src/jinja2/runtime.py#L1049-L1056), it's not possible to copy/deepcopy/pickle `Undefined` objects (all of which we occasionally need to do in Ansible) in Python...

When argument value is `None` filters convert it to string `'None'` then process it as string `'None'`. But if this behaviour was correct, the expression `{{ if none == 'None'...

Makes compiled output deterministic, when doing tuple unpacking to set multiple vars in a single `{% set ... %}` call. fixes #2021

Ideally compile_templates will have deterministic output so we can use git diff etc See also https://github.com/pallets/jinja/issues/1453 and https://github.com/pallets/jinja/issues/1452 Found another case where this occurs, e.g. I'm randomly getting these changes...