mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-04 19:57:20 +02:00
* JSONCache for caching JSON data (vs reading + parsing every time)
* Minor changes
This commit is contained in:
parent
306e84b323
commit
89adc83fc6
9 changed files with 149 additions and 52 deletions
|
@ -19,6 +19,7 @@ exports.getRandomTheme = getRandomTheme;
|
|||
exports.initAvailableThemes = initAvailableThemes;
|
||||
exports.displayThemeArt = displayThemeArt;
|
||||
|
||||
// :TODO: use JSONCache here... may need to fancy it up a bit in order to have events for after re-cache, e.g. to update helpers below:
|
||||
function loadTheme(themeID, cb) {
|
||||
var path = paths.join(Config.paths.themes, themeID, 'theme.json');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue