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
a81e5824
Commit
a81e5824
authored
Jun 04, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix erroneous reference at a tuple
parent
de0aa56b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
docs/compressors.rst
+7
-2
No files found.
docs/compressors.rst
View file @
a81e5824
...
...
@@ -150,8 +150,8 @@ of compressors.
All you need to do is to create a class that inherits from ``pipeline.compressors.CompressorBase``
and implements ``compress_css`` and/or a ``compress_js`` when needed.
Finally,
specify it in the tuple of compressors
``PIPELINE_CSS_COMPRESSOR`` or
``PIPELINE_JS_COMPRESSOR``
(see :doc:`configuration` for more information) in the settings
.
Finally,
add it to
``PIPELINE_CSS_COMPRESSOR`` or
``PIPELINE_JS_COMPRESSOR``
settings (see :doc:`configuration` for more information)
.
Example
-------
...
...
@@ -167,3 +167,8 @@ A custom compressor for a imaginary compressor called jam ::
def compress(self, css):
return jam.compress(css)
Add it to your settings ::
PIPELINE_CSS_COMPRESSOR = 'jam.compressors.JamCompressor'
PIPELINE_JS_COMPRESSOR = 'jam.compressors.JamCompressor'
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