Created
August 21, 2013 14:48
-
-
Save esoergel/6295469 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
<head> | |
... | |
{% less "some/less/file.less" %} | |
{% js "some/js/file.js" %} | |
{% compress %} | |
<style type="text/less"> | |
.inline_element { | |
.child_element { | |
color: red; | |
} | |
}u | |
</style> | |
<script type="text/javascript"> | |
// inline javascript | |
</script> | |
{% endcompress %} | |
<script type="text/javascript"> | |
foo = {{ context_var|JSON }} | |
</script> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With this though, I do think it'd make sense to not use the compress tag directly, rather something that includes less.js and doesn't compress if DEBUG, else uses compress.