added templates.setGlobal - allows you to add default template vars that are sent to all tpls upon parsing; added relative_path as global

This commit is contained in:
psychobunny
2014-01-04 17:44:08 -05:00
parent 487281cc7a
commit fda68bc5dd
3 changed files with 18 additions and 1 deletions

View File

@@ -468,6 +468,8 @@ var socket,
app.alternatingTitle('');
});
templates.setGlobal('relative_path', RELATIVE_PATH);
});
showWelcomeMessage = location.href.indexOf('loggedin') !== -1;