adding cache-buster to template globals

This commit is contained in:
Julian Lam
2014-03-24 14:35:17 -04:00
parent 8c7b474e8b
commit c2f6717e88
2 changed files with 1 additions and 2 deletions

1
app.js
View File

@@ -126,6 +126,7 @@ function start() {
upgrade = require('./src/upgrade');
templates.setGlobal('relative_path', nconf.get('relative_path'));
templates.setGlobal('cache-buster', meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '');
upgrade.check(function(schema_ok) {
if (schema_ok || nconf.get('check-schema') === false) {