This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 45a740064afc669a4447ec0984eb9c754829b467
tree b66cd8a5f6543bdd7a993de32c647a2f3b434ae5
parent d1c8cc01f5dffb02938e7111fdc9cf31639c3397
tree b66cd8a5f6543bdd7a993de32c647a2f3b434ae5
parent d1c8cc01f5dffb02938e7111fdc9cf31639c3397
| name | age | message | |
|---|---|---|---|
| |
README.rst | ||
| |
tag_helper.py |
README.rst
Cachebuster Template Tags
Just that. Use the cachebuster tag_helpers to ensure the browswers are not caching your css or javascript edits. Using the template tags will return a full css or javascript tag with the filename and a sha1 string appended based on the name of the file and the edit date of the file. When the file is changed the hash is also updated.
Usage
Load the tag
{% load tag_helper %}
Javascript
{% js_tag "jquery.js" %} or {% js_tag "jquery" %}
will return
<script src="/site_media/jquery.js?e90301f912ab5c1b72d6422aa690d76c1cbff357" type="text/javascript"></script>
CSS
{% css_tag "base.css" %} or {% css_tag "base" %}
will return
<link rel="stylesheet" href="/site_media/base.css?aa3117fb84ed9fddcd93ba62e459bf2211262ae4" />








