cache busting for js file based on server version.

This commit is contained in:
Keivan Beigi 2013-06-20 17:06:56 -07:00
commit 0916c8b8d1
12 changed files with 205 additions and 126 deletions

View file

@ -0,0 +1,18 @@
"use strict";
define(
[
'sugar'
], {
register: function (handlebars) {
handlebars.registerHelper("ShortDate", function (input) {
if (!input) {
return '';
}
var date = Date.create(input);
var result = '<span title="' + date.full() + '">' + date.short() + '</span>';
return new handlebars.SafeString(result);
});
}
});