Ticket #2181: defaulttags.diff
File defaulttags.diff, 1.2 KB (added by , 18 years ago) |
---|
-
defaulttags.py
1 1 "Default tags used by the template system, available to all templates." 2 2 3 3 from django.template import Node, NodeList, Template, Context, resolve_variable 4 from django.template import TemplateSyntaxError, VariableDoesNotExist, BLOCK_TAG_START, BLOCK_TAG_END, VARIABLE_TAG_START, VARIABLE_TAG_END 4 from django.template import TemplateSyntaxError, VariableDoesNotExist, BLOCK_TAG_START, BLOCK_TAG_END, VARIABLE_TAG_START, VARIABLE_TAG_END, SINGLE_VARIABLE_TAG_START, SINGLE_VARIABLE_TAG_END 5 5 from django.template import get_library, Library, InvalidTemplateLibrary 6 6 from django.conf import settings 7 7 import sys … … 275 275 mapping = {'openblock': BLOCK_TAG_START, 276 276 'closeblock': BLOCK_TAG_END, 277 277 'openvariable': VARIABLE_TAG_START, 278 'closevariable': VARIABLE_TAG_END} 278 'closevariable': VARIABLE_TAG_END, 279 'opensinglebrace': SINGLE_VARIABLE_TAG_START, 280 'closesinglebrace': SINGLE_VARIABLE_TAG_END} 279 281 280 282 def __init__(self, tagtype): 281 283 self.tagtype = tagtype