asphalt.templating.renderers.mako
¶
-
class
asphalt.templating.renderers.mako.
MakoRenderer
(package_paths: typing.Iterable[str] = (), **lookup_options)¶ Renders Mako templates.
Note
By default, the
filesystem_checks
argument ofTemplateLookup
is set to the value of the__debug__
variable. This means that in production mode, it will not check for template changes. If a template is edited in production mode, the application must be restarted for the changes to take effect.Parameters: - package_paths (
Iterable
[str
]) – if given, looks up the directories containing the given package and fills in thedirectories
argument forTemplateLookup
. The value will be interpreted bypackage_to_directory()
. - loader_args – extra arguments to pass to
TemplateLookup
- package_paths (