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 list comprehension is incorrect: ![image](https://github.com/user-attachments/assets/d1d07840-bad8-43da-aab2-c1f65a975b4f) https://jinja.palletsprojects.com/en/latest/templates/#jinja-filters.selectattr It says `u for user in users` when it should be `user for user in users` (I'm pretty sure). Tried to find it...

indent filter uses \n always rather than following api newline_sequence Configure the environment with newline_sequence="\r\n" Then use the indent filter on a multi-line macro The returned content uses \n instead...

We need to use NativeEnvironment since we are templating JSONs using Jinja, at the same time the templates are from untrusted sources so we need to sandbox them. It seems...

Consider this minimal example: ```python from jinja2 import Template inner = Template('{{ first_name }} {{ last_name }}', autoescape=True).render(first_name='John', last_name="Doe") outer = Template('Hello,{{ name }}!', autoescape=True).render(name=inner) print(outer) ``` It results in...

something like this perhaps: ```py template.stream().dump(temp_folder/"sample_output.html") ``` rather than just a string. Seems to be common in Python APIs to accept path like objects.

~~Add the `preserve_comments` parameter to `Environment.parse` to preserve comments in template ASTs.~~ Create a new `Comment` node, and always preserve those in ASTs obtained from `Environment.parse`. Fixes #1967. - [x]...

We start receiving jinja2 error with sandbox and format_map function inside for loop after upgrade jinja2 2.10 to jinja2 3.1.3: ``` Unable to manage file: Jinja error: format_map() takes exactly...

I have been looking at the implementations of `FileSystemLoader` and `PackageLoader` to see if any of them can support `MultiplexedPath` or more general `Traversable`. The idea is that we have...

I happened to notice in using `ImmutableSandboxedEnvironment` that the default `modifies_known_mutable` check seems to be missing coverage for a couple of methods. In particular the `clear` and `pop` methods are...