Created
May 27, 2015 21:14
-
-
Save garlicnation/eaf20f1a1227ce6b7409 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| from django.utils.safestring import mark_safe | |
| def oneWayBind(expression): | |
| return mark_safe("[[" + expression + "]]") | |
| def twoWayBind(expression): | |
| return mark_safe("{{" + expression + "}}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment