summaryrefslogtreecommitdiff
path: root/django/template/__init__.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-06-18 04:12:55 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-06-18 04:12:55 +0000
commit75a8a32f8629b47135890ac6ecda061a616d1cfc (patch)
treeb0bd5f35ffd7c1d48e334b41517b8a55ad11795d /django/template/__init__.py
parent4540a85ddabd9303955b88f5f727a7ede6161253 (diff)
Fixed #2181 -- allow '{' and '}' to be escaped via {% templatetag ... %}.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/template/__init__.py')
-rw-r--r--django/template/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index 028d23f251..08f433fec9 100644
--- a/django/template/__init__.py
+++ b/django/template/__init__.py
@@ -75,6 +75,8 @@ BLOCK_TAG_START = '{%'
BLOCK_TAG_END = '%}'
VARIABLE_TAG_START = '{{'
VARIABLE_TAG_END = '}}'
+SINGLE_BRACE_START = '{'
+SINGLE_BRACE_END = '}'
ALLOWED_VARIABLE_CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.'