Skip to content

Instantly share code, notes, and snippets.

@garlicnation
Created May 27, 2015 21:14
Show Gist options
  • Select an option

  • Save garlicnation/eaf20f1a1227ce6b7409 to your computer and use it in GitHub Desktop.

Select an option

Save garlicnation/eaf20f1a1227ce6b7409 to your computer and use it in GitHub Desktop.
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