Support for "with" statement
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with the Jinja documentation for the “with” statement and the example in this issue, then trace how Jinjava reports the current “Unknown tag: with” syntax error. Done means the shown template parses and renders with the requested scoped values, consistent with the linked Jinja behavior.
Written by the indexing model from the issue text.
Description
It would be nice to have support for the "with" statement.
See https://jinja.palletsprojects.com/en/3.0.x/templates/#with-statement for details and examples.
{% with jobname="my_job", schedule="0 1 * * 0", deadline=300 %}
{% include 'objects/CronJob.jinja.yml' %}
{% endwith %}
Currently you get:
Syntax error in '{% with jobname="my_job", schedule="0 1 * * 0", deadline=300 %}': Unknown tag: with
- Dominant language
- Java
- Stars
- 785
- Forks
- 184
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HubSpot/jinjava
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Jinjava 3.0 Open
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·