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 "with" statement #1121

Open
klr8 opened this issue Oct 17, 2023 · 0 comments
Open

Support for "with" statement #1121

klr8 opened this issue Oct 17, 2023 · 0 comments

Comments

@klr8
Copy link

klr8 commented Oct 17, 2023

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

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