Last active
August 29, 2015 14:17
-
-
Save monokrome/aafe40a24d7bd4bc7fd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% compress css %} | |
<link rel=stylesheet type=text/css href="something.css{{ gzip_extension }}" /> | |
{% endcompress css %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gzip_extension_processor(request): | |
""" HACKHACK """ | |
if 'gzip' in request.GET: | |
extension = '.gz' | |
else: | |
extension = '' | |
return { 'gzip_extension': extension } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment