Created
April 27, 2014 02:15
-
-
Save ericwilson/11336147 to your computer and use it in GitHub Desktop.
Django template's "with" statement to calculate values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% with border_value=photo.ispromo|yesno:"4px_solid_black," %} | |
{% cloudinary photo.original_image_id width=photo.width height=photo.height crop="fill" angle='exif' gravity='faces' border=border_value %} | |
{% endwith %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment