themes - added ability to route custom templates

This commit is contained in:
psychobunny
2013-10-29 12:34:41 -04:00
parent e0e32efd26
commit 842cd17979
2 changed files with 10 additions and 4 deletions

View File

@@ -120,9 +120,8 @@ var utils = require('./../public/src/utils.js'),
});
},
function(config, next) {
if (config.staticDir) {
themeData['theme:staticDir'] = config.staticDir;
}
themeData['theme:staticDir'] = config.staticDir ? config.staticDir : false;
themeData['theme:templates'] = config.templates ? config.templates : false;
RDB.hmset('config', themeData, next);
}