Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

optional append string for browser cache invalidation

  • Loading branch information...
commit c70cda2e180e60cd509b1a89b1a5f5e1808923cf 1 parent 94a1782
@jobelenus authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 handlebar.js
View
4 handlebar.js
@@ -26,6 +26,7 @@
var publicAPI,
manifest,
_tmpl_prepend,
+ _tmpl_append,
_util,
_queue = [],
_templates = {},
@@ -37,6 +38,7 @@
_util = publicAPI.Util;
_manifest_loading = true;
_tmpl_prepend = tmpl_prepend || "";
+ _tmpl_append = tmpl_append || "";
publicAPI.manifest = manifest || publicAPI.manifest || "templates.json";
publicAPI.Loader.get(publicAPI.manifest)
.then(function(P){
@@ -557,7 +559,7 @@
var template = templateURLsplit(src);
if (template.src) {
- return publicAPI.Loader.get(_tmpl_prepend+template.src)
+ return publicAPI.Loader.get(_tmpl_prepend+template.src+'?'+_tmpl_append)
.then(function(P){
return handleTemplate(P.value,template.id,data,template.src);
})
Please sign in to comment.
Something went wrong with that request. Please try again.