Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Tuples #660

Open
tjsmith-meta opened this issue Dec 18, 2024 · 0 comments
Open

Support for Tuples #660

tjsmith-meta opened this issue Dec 18, 2024 · 0 comments

Comments

@tjsmith-meta
Copy link

Description

I encountered that Tuples behaved differently in MiniJinja and then noticed that it is indeed documented that they aren't supported.
https://github.com/mitsuhiko/minijinja/blob/main/COMPATIBILITY.md#tuples

Here's an example.

Input template

{% set foo = ('bar','baz') %}
{{ foo }}

Python Jinja2 output

('bar', 'baz')

MiniJinja output

["bar", "baz"]

Reproduction steps

  1. Feed the input template through Python Jinja2
  2. Feed the input template through MiniJinja
  3. See that the results are not the same

What did you expect

Would love to see Tuples supported at parity in MiniJinja with Python Jinja2. Is this a technically complex / challenging to achieve, or has there just not been strong enough motivation yet for parity with Python Jinja2 for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant