Django

Code

Ticket #2181: defaulttags.diff

File defaulttags.diff, 1.2 kB (added by ubernostrum, 2 years ago)

Add the right files this time

  • defaulttags.py

    old new  
    11"Default tags used by the template system, available to all templates." 
    22 
    33from 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 
     4from 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 
    55from django.template import get_library, Library, InvalidTemplateLibrary 
    66from django.conf import settings 
    77import sys 
     
    275275    mapping = {'openblock': BLOCK_TAG_START, 
    276276               'closeblock': BLOCK_TAG_END, 
    277277               '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} 
    279281 
    280282    def __init__(self, tagtype): 
    281283        self.tagtype = tagtype