mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
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:
@@ -468,6 +468,8 @@ var socket,
|
||||
|
||||
app.alternatingTitle('');
|
||||
});
|
||||
|
||||
templates.setGlobal('relative_path', RELATIVE_PATH);
|
||||
});
|
||||
|
||||
showWelcomeMessage = location.href.indexOf('loggedin') !== -1;
|
||||
|
||||
Reference in New Issue
Block a user