asphalt.templating.renderers.django
¶
-
class
asphalt.templating.renderers.django.
DjangoRenderer
(engine: typing.Union[django.template.engine.Engine, typing.Dict[str, typing.Any]] = None, package_paths: typing.Iterable[str] = ())¶ Renders Django templates.
Parameters: - engine (
Union
[Engine
,Dict
[str
,Any
],None
]) – a Django template engine object or keyword arguments for its constructor - package_paths (
Iterable
[str
]) – if given, looks up the directories containing the given package and fills in or extends thedirs
argument forEngine
. The value will be interpreted bypackage_to_directory()
.
- engine (