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
Can we get an {% empty %} tag? #77
Comments
That already exists. Use |
oh, i see. Maybe put a note of that in the "Switching from other Template Engines" under then django section? |
Points out that the Django empty is replaced by the Flask else.
I don't see this in the switching documentation. It is mentioned in the control structures:for documentation but it would be helpful to have it in the switching doc... |
If I don't know if you can add a flag to check if loop has run, check for |
The |
Django has this really cool tag called {% empty %}, which lets you do this:
which is short for
Since switching to jinja, I have really missed this tag :(
The text was updated successfully, but these errors were encountered: