-
Notifications
You must be signed in to change notification settings - Fork 99
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
static_comments: compare to None not none in templates #273
Conversation
For jinja2, it must be |
@felixfontein mako wants None, I did not test jinja, so amended the commit to only touch mako templates |
Sounds good! I must admit that I haven't tested the Mako versions... |
I noticed ;) |
Thanks for fixing this! |
I think |
|
import jinja2
print(jinja2.Environment().from_string('{% if None is none %}A{% else %}B{% endif %}').render())
print(jinja2.Environment().from_string('{% if None is None %}A{% else %}B{% endif %}').render()) This prints
|
h/t @felixfontein — via getnikola/plugins#273 Signed-off-by: Chris Warrick <kwpolska@gmail.com>
No description provided.