Commit b65da3a3 by Timothée Peignier

Merge pull request #512 from Sapphire64/patch-1

Docs update: Configuration example for jinja2
parents 7bac3c60 2dca7171
......@@ -87,7 +87,19 @@ Jinja
=====
Pipeline also includes Jinja2 support and is used almost identically to the Django Template tags implementation.
You just need to pass ``pipeline.templatetags.ext.PipelineExtension`` to your Jinja2 environment.
You just need to pass ``pipeline.templatetags.ext.PipelineExtension`` to your Jinja2 environment::
{
'BACKEND': 'django.template.backends.jinja2.Jinja2',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'environment': 'myproject.jinja2.environment',
'extensions': ['pipeline.templatetags.ext.PipelineExtension']
}
}
Templates
---------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment