The answer you're looking for is the "templatetag" template tag.
Essentially, it lets you specify escaped characters by name.
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#templatetag
For example:
>>> from django.template import Template, Context
>>> t = Template('{% templatetag openvariable %} foo {% templatetag
closevariable %}')
>>> t.render(Context())
u'{{ template_variable }}'
>>>
On 12/19/2011 10:35 AM, J. Marc Edwards wrote:
I'd like to write a paragraph on my page that describes the {{ }}
syntax, but the template interpreter is interpreting the braces.
--
J. Marc Edwards
Lead Architect - Semiconductor Design Portals
Nimbis Services, Inc.
Skype: (919) 747-3775
Cell: (919) 345-1021
Fax: (919) 882-8602
marc.edwa...@nimbisservices.com
www.nimbisservices.com
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.