0

Possible Duplicate:
How to put braces in django templates?

When I use jQuery template I need to use {{ in my HTML. It is variable delimiter in Django templates. How to escape it so that Django template system won't react on it and have {{ in resulting HTML?

UPD: this is documented https://docs.djangoproject.com/en/dev/ref/templates/builtins/#templatetag

Community
  • 1
  • 1
peroksid
  • 890
  • 6
  • 17
  • the templatetag option is so verbose it becomes silly when trying to write e.g. jquery templates. for such situations something like the `verbatim` gist are far superior in my view – second Dec 01 '11 at 12:09

1 Answers1

1

i've used the verbatim tag from this gist with some succes for exactly this purpose

second
  • 28,029
  • 7
  • 75
  • 76