Skip to content

Instantly share code, notes, and snippets.

@Shu-Ji
Last active August 29, 2015 14:08
Show Gist options
  • Save Shu-Ji/91014cb5f8182eb6bcf4 to your computer and use it in GitHub Desktop.
Save Shu-Ji/91014cb5f8182eb6bcf4 to your computer and use it in GitHub Desktop.
//- index.jade
{% macro cache() %}
script.
{% if DEBUG %}
dg.static_url = {
vendor: '{{ static_url("vendor/vendor.js") }}',
'common/app.js': "{{ static_url('sanhaolu/default/common/app.js') }}",
'pages/404.html': "{{ static_url('sanhaolu/default/pages/404.html') }}"
};
{% else %}
dg.static_url = {
vendor: '{{ static_url("vendor/vendor.min.js") }}',
'common/app.js': "{{ static_url('sanhaolu/default/common/app.min.js') }}",
'pages/404.html': "{{ static_url('sanhaolu/default/pages/404.min.html') }}"
};
{% endifG %}
{% endmacro %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment