(self, context)
Render the node.
Render the node.
Render the node .
def render(self, context):  # pylint:disable=g-bad-name
    """Render the node."""
    stack = context.get(NOBLANK_STACK)
    if stack is None:
      stack = context[NOBLANK_STACK] = [self]
    else:
      stack.append(self)
    try:
      output = []
      for n in self.nodelist:
        text = n.render(context)
        if not isinstance(n, TemplateNode) or self.recurse:
          text = self._CleanText(text)
        output.append(text)
      text = ''.join(output)
      # Only replace markers if we are the last node in the stack.
      if len(stack) == 1:
        text = self._ReplaceMarkers(text)
      return text
    finally:
      stack.pop()
def render ( self , context ) : # pylint:disable=g-bad-name stack = context . get ( NOBLANK_STACK ) if stack is None : stack = context [ NOBLANK_STACK ] = [ self ] else : stack . append ( self ) try : output = [ ] for n in self . nodelist : text = n . render ( context ) if not isinstance ( n , TemplateNode ) or self . recurse : text = self . _CleanText ( text ) output . append ( text ) text = '' . join ( output ) # Only replace markers if we are the last node in the stack. if len ( stack ) == 1 : text = self . _ReplaceMarkers ( text ) return text finally : stack . pop ( )