Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
b65da3a3
Commit
b65da3a3
authored
Dec 02, 2015
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #512 from Sapphire64/patch-1
Docs update: Configuration example for jinja2
parents
7bac3c60
2dca7171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
docs/usage.rst
+13
-1
No files found.
docs/usage.rst
View file @
b65da3a3
...
@@ -87,7 +87,19 @@ Jinja
...
@@ -87,7 +87,19 @@ Jinja
=====
=====
Pipeline also includes Jinja2 support and is used almost identically to the Django Template tags implementation.
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
Templates
---------
---------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment