parameters: (self, name, current)
return_statement: return BlockReference(name, self, blocks, index)
docstring: Render a parent block.
docstring_summary: Render a parent block.
docstring_tokens: Render a parent block .
function: def super(self, name, current):
          """Render a parent block."""
          try:
              blocks = self.blocks[name]
              index = blocks.index(current) + 1
              blocks[index]
          except LookupError:
              return self.environment.undefined('there is no parent block '
                                                'called %r.' % name,
                                                name='super')
          return BlockReference(name, self, blocks, index)
function_tokens: def super ( self , name , current ) : try : blocks = self . blocks [ name ] index = blocks . index ( current ) + 1 blocks [ index ] except LookupError : return self . environment . undefined ( 'there is no parent block ' 'called %r.' % name , name = 'super' ) return BlockReference ( name , self , blocks , index )