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 jinja expression statements #1113

Closed
drewbanin opened this issue Nov 12, 2018 · 0 comments
Closed

Support jinja expression statements #1113

drewbanin opened this issue Nov 12, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@drewbanin
Copy link
Contributor

Feature

Feature description

http://jinja.pocoo.org/docs/2.10/extensions/#expression-statement

Presently, we hack expressions with:

{% set _ = my_dict.update({"a": 1, "b": 2}) %}

Instead, the jinja expression statement will make it possible to write:

{% do my_dict.update({"a": 1, "b": 2}) %}

This is a minor difference, but it will make jinja sql more readable and idiomatic.

Who will this benefit?

jinja writers

@drewbanin drewbanin added the enhancement New feature or request label Nov 12, 2018
@drewbanin drewbanin modified the milestones: Stephen Girard, Grace Kelly Nov 12, 2018
beckjake added a commit that referenced this issue Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant