(self, context)
Render the node.
Render the node.
Render the node .
def render(self, context):  # pylint: disable=g-bad-name
    """Render the node."""
    template_path = os.path.join(context['template_dir'], self._template_name)
    # Collect new additions to the context
    newvars = {}
    for target, source in self._bindings.iteritems():
      try:
        newvars[target] = django_template.Variable(source).resolve(context)
      except django_template.base.VariableDoesNotExist:
        raise django_template.TemplateSyntaxError(
            'can not resolve %s when calling template %s' % (
                source, self._template_name))
    # Push new variables onto the context stack
    context.update(newvars)
    # Render the result
    try:
      return _RenderToString(template_path, context).rstrip()
    except django_template.TemplateDoesNotExist:
      # replace with full path
      raise django_template.TemplateDoesNotExist(template_path)
    finally:
      # Pop the context stack
      context.pop()
def render ( self , context ) : # pylint: disable=g-bad-name template_path = os . path . join ( context [ 'template_dir' ] , self . _template_name ) # Collect new additions to the context newvars = { } for target , source in self . _bindings . iteritems ( ) : try : newvars [ target ] = django_template . Variable ( source ) . resolve ( context ) except django_template . base . VariableDoesNotExist : raise django_template . TemplateSyntaxError ( 'can not resolve %s when calling template %s' % ( source , self . _template_name ) ) # Push new variables onto the context stack context . update ( newvars ) # Render the result try : return _RenderToString ( template_path , context ) . rstrip ( ) except django_template . TemplateDoesNotExist : # replace with full path raise django_template . TemplateDoesNotExist ( template_path ) finally : # Pop the context stack context . pop ( )