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
be0f9fc3
Commit
be0f9fc3
authored
Apr 23, 2012
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to disable javacsript wrapper
parent
3a103de9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
docs/configuration.rst
+1
-0
pipeline/compressors/__init__.py
+3
-1
pipeline/conf/settings.py
+2
-0
No files found.
docs/configuration.rst
View file @
be0f9fc3
...
...
@@ -205,3 +205,4 @@ All javascript output is wrapped in an anonymous function : ::
This safety wrapper, make it difficult to pollute the global namespace by accident and improve performance.
You can override this behavior by setting ``PIPELINE_DISABLE_WRAPPER`` to ``True``.
pipeline/compressors/__init__.py
View file @
be0f9fc3
...
...
@@ -58,7 +58,9 @@ class Compressor(object):
js
=
self
.
concatenate
(
paths
)
if
templates
:
js
=
js
+
self
.
compile_templates
(
templates
)
js
=
"(function() {
%
s }).call(this);"
%
js
if
not
settings
.
PIPELINE_DISABLE_WRAPPER
:
js
=
"(function() {
%
s }).call(this);"
%
js
compressor
=
self
.
js_compressor
if
compressor
:
...
...
pipeline/conf/settings.py
View file @
be0f9fc3
...
...
@@ -23,6 +23,8 @@ PIPELINE_TEMPLATE_NAMESPACE = getattr(settings, 'PIPELINE_TEMPLATE_NAMESPACE', "
PIPELINE_TEMPLATE_EXT
=
getattr
(
settings
,
'PIPELINE_TEMPLATE_EXT'
,
".jst"
)
PIPELINE_TEMPLATE_FUNC
=
getattr
(
settings
,
'PIPELINE_TEMPLATE_FUNC'
,
"template"
)
PIPELINE_DISABLE_WRAPPER
=
getattr
(
settings
,
'PIPELINE_DISABLE_WRAPPER'
,
False
)
PIPELINE_CSSTIDY_BINARY
=
getattr
(
settings
,
'PIPELINE_CSSTIDY_BINARY'
,
'/usr/local/bin/csstidy'
)
PIPELINE_CSSTIDY_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_CSSTIDY_ARGUMENTS'
,
'--template=highest'
)
...
...
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