Name Description Size
__init__.py 242
_ast_util.py ast ~~~ This is a stripped down version of Armin Ronacher's ast module. :copyright: Copyright 2008 by Armin Ronacher. :license: Python License. 20247
ast.py utilities for analyzing expressions and blocks of Python code, as well as generating Python from AST nodes 6642
cache.py Represents a data content cache made available to the module space of a specific :class:`.Template` object. .. versionadded:: 0.6 :class:`.Cache` by itself is mostly a container for a :class:`.CacheImpl` object, which implements a fixed API to provide caching services; specific subclasses exist to implement different caching strategies. Mako includes a backend that works with the Beaker caching system. Beaker itself then supports a number of backends (i.e. file, memory, memcached, etc.) The construction of a :class:`.Cache` is part of the mechanics of a :class:`.Template`, and programmatic access to this cache is typically via the :attr:`.Template.cache` attribute. 7680
cmd.py 2814
codegen.py provides functionality for rendering a parsetree constructing into module source code. 47147
compat.py getargspec based on fully vendored getfullargspec from Python 3.3. 1913
exceptions.py exception classes 12530
ext
filters.py Replace characters with their character entity references. Only characters corresponding to a named entity are replaced. 4658
lexer.py provides the Lexer class for parsing template strings into parse trees. 15977
lookup.py <html><body>${self.next()}</body></html> 12429
parsetree.py defines the parse tree components for Mako templates. 19007
pygen.py utilities for generating and formatting literal Python code. 10416
pyparser.py Handles parsing of Python code. Parsing to AST is done via _ast on Python > 2.5, otherwise the compiler module is used. 7032
runtime.py provides runtime services for templates, including Context, Namespace, and various helper functions. 27806
template.py Provides the Template class, a facade for parsing, generating and executing template strings, as well as template runtime operations. 23858
testing
util.py create and/or verify a filesystem directory. 10638