asphalt.templating.renderers.tornado
Renders Tornado templates.
package_path (str | None) – if given, looks up the directory containing the given package and fills in he root_directory argument for Loader. The value will be interpreted by package_to_directory().
root_directory
Loader
package_to_directory()
loader_args – extra arguments to pass to Loader
Render the named template.
template (str) – name of the template file, relative to any of the configured template directories
str
vars (Any) – extra context variables made available to templates
Any
the rendered results
Render the template contained in the given string.
source (str) – content of the template to render
vars (Any) – extra variables made available to the template