module documentation
provides functionality for rendering a parsetree constructing into module source code.
Class |
|
A node visitor which looks for the name 'loop' within undeclared identifiers. |
Function | compile |
Generate module source code given a parsetree node, uri, and optional source filename |
Function | mangle |
converts a for loop into a context manager wrapped around a for loop when access to the `loop` variable has been detected in the for loop body |
Constant | MAGIC |
Undocumented |
Constant | RESERVED |
Undocumented |
Constant | TOPLEVEL |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
A template visitor object which generates the full module source for a template. |
Class | _ |
tracks the status of identifier names as template code is rendered. |
Constant | _FOR |
Undocumented |
def compile(node, uri, filename=None, default_filters=None, buffer_filters=None, imports=None, future_imports=None, source_encoding=None, generate_magic_comment=True, strict_undefined=False, enable_loop=True, reserved_names=frozenset()):
(source)
¶
Generate module source code given a parsetree node, uri, and optional source filename
converts a for loop into a context manager wrapped around a for loop when access to the `loop` variable has been detected in the for loop body
Undocumented
Value |
|