forked from github/pelican
Correctly use the right variable for webassets
According to [the webasset docs](http://webassets.readthedocs.org/en/latest/integration/jinja2.html#using-the-tag) the variable should be `ASSET_URL` instead of `ASSETS_URL`.
This commit is contained in:
parent
7d1c362635
commit
da1efcd847
1 changed files with 1 additions and 1 deletions
|
|
@ -509,7 +509,7 @@ Another example for Javascript:
|
|||
.. code-block:: jinja
|
||||
|
||||
{% assets filters="uglifyjs,gzip", output="js/packed.js", "js/jquery.js", "js/base.js", "js/widgets.js" %}
|
||||
<script src="{{ ASSETS_URL }}"></script>
|
||||
<script src="{{ ASSET_URL }}"></script>
|
||||
{% endassets %}
|
||||
|
||||
The above will produce a minified and gzipped JS file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue