File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,10 @@ def output(self):
152
152
return render_to_string (self .template_name , context )
153
153
154
154
def output_inline (self ):
155
- return render_to_string (self .template_name_inline , {'content' : settings .COMPRESS and self .combined or self .concat ()})
155
+ context = {'content' : settings .COMPRESS and self .combined or self .concat ()}
156
+ if hasattr (self , 'extra_context' ):
157
+ context .extend (self .extra_context )
158
+ return render_to_string (self .template_name_inline , context )
156
159
157
160
class CssCompressor (Compressor ):
158
161
Original file line number Diff line number Diff line change 1
- < style type ="text/css "> {{ content }}</ style >
1
+ < style type ="text/css "{% if media %} media =" {{ media }} " {% endif %} > {{ content|safe }}</ style >
Original file line number Diff line number Diff line change 1
- < script type ="text/javascript "> { { content } } </ script >
1
+ < script type ="text/javascript "> { { content | safe } } </ script >
You can’t perform that action at this time.
0 commit comments