parameters: (statements, context, callback)
docstring: Execute a bunch of template statements in a ScopedContext.
  
    Args:
      callback: Strings are "written" to this callback function.
  
    This is called in a mutually recursive fashion.
docstring_summary: Execute a bunch of template statements in a ScopedContext.
docstring_tokens: Execute a bunch of template statements in a ScopedContext .
function: def _Execute(statements, context, callback):
    """Execute a bunch of template statements in a ScopedContext.
  
    Args:
      callback: Strings are "written" to this callback function.
  
    This is called in a mutually recursive fashion.
    """
  
    for i, statement in enumerate(statements):
      if isinstance(statement, basestring):
        callback(statement)
      else:
        # In the case of a substitution, args is a pair (name, formatters).
        # In the case of a section, it's a _Section instance.
        try:
          func, args = statement
          func(args, context, callback)
        except UndefinedVariable:
          exc_type, exc_value, _ = sys.exc_info()
          # Show context for statements
          start = max(0, i-3)
          end = i+3
          exc_value.near = statements[start:end]
          raise
function_tokens: def _Execute ( statements , context , callback ) : for i , statement in enumerate ( statements ) : if isinstance ( statement , basestring ) : callback ( statement ) else : # In the case of a substitution, args is a pair (name, formatters). # In the case of a section, it's a _Section instance. try : func , args = statement func ( args , context , callback ) except UndefinedVariable : exc_type , exc_value , _ = sys . exc_info ( ) # Show context for statements start = max ( 0 , i - 3 ) end = i + 3 exc_value . near = statements [ start : end ] raise