Skip to content

Commit

Permalink
Document the {% load_bundle .. %} tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ask Solem authored and Ask Solem Hoel committed Apr 16, 2009
1 parent 6a9c08f commit c5a5023
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.rst
Expand Up @@ -104,6 +104,16 @@ you should write this::
{% javascript "js_bundle_name" "myscript.js" %}
{% css "css_bundle_name" "mystyle.css" %}

If you want, you can load all the files in a bundle at once with the
``load_bundle`` tag::

{% load_bundle "js_bundle_name" %}
{% load_bundle "css_bundle_name" %}

``load_bundle`` will add ``{% css %}`` and ``{% javascript %}`` tags for all
the files in the bundle.

If you are deferring your Javascript, then at the bottom of your base template
you should insert the tag ``{% deferred_content %}``. We recommend opening a
second head tag after your body and putting it there.

0 comments on commit c5a5023

Please sign in to comment.