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

resolves #37, jinja if conditional without else returns undefined #38

Merged
merged 1 commit into from
Dec 16, 2015

Conversation

arifb
Copy link
Contributor

@arifb arifb commented Dec 15, 2015

See #37 - when the conditional was evaluating to false, jinja returns an undefined object.
From http://jinja.pocoo.org/docs/dev/templates/#if-expression

The else part is optional. If not provided, the else block implicitly evaluates into an undefined object

@a-chernykh
Copy link
Owner

Thanks, @arifb

a-chernykh added a commit that referenced this pull request Dec 16, 2015
resolves #37, jinja if conditional without else returns undefined
@a-chernykh a-chernykh merged commit bf3bb04 into a-chernykh:master Dec 16, 2015
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

Successfully merging this pull request may close these issues.

2 participants