asphalt.templating.renderers.django
- class asphalt.templating.renderers.django.DjangoRenderer(engine=None, package_paths=())
Renders Django templates.
- Parameters:
engine – a Django template engine object or keyword arguments for its constructor
package_paths – if given, looks up the directories containing the given package and fills in or extends the
dirs
argument forEngine
. The value will be interpreted bypackage_to_directory()
.
- render(template, **vars)
Render the named template.