parameters: (node, environment, name, filename, stream=None,
               defer_init=False)
docstring: Generate the python source for a node tree.
docstring_summary: Generate the python source for a node tree.
docstring_tokens: Generate the python source for a node tree .
function: def generate(node, environment, name, filename, stream=None,
               defer_init=False):
      """Generate the python source for a node tree."""
      if not isinstance(node, nodes.Template):
          raise TypeError('Can\'t compile non template nodes')
      generator = environment.code_generator_class(environment, name, filename,
                                                   stream, defer_init)
      generator.visit(node)
      if stream is None:
          return generator.stream.getvalue()
function_tokens: def generate ( node , environment , name , filename , stream = None , defer_init = False ) : if not isinstance ( node , nodes . Template ) : raise TypeError ( 'Can\'t compile non template nodes' ) generator = environment . code_generator_class ( environment , name , filename , stream , defer_init ) generator . visit ( node ) if stream is None : return generator . stream . getvalue ( )