lib/static/ThemesWatcher.js
function initThemeFilesWatch(app) {
    utils.tick(function () {
        var viewsPath = utils.getViewsPath();
        var dbAction = new DBActions.DBActions(app.set("db"), {modelName: "Theme"});
        dbAction.get("getAll", null, function (err, themes) {
            if (err) throw err;
            themes.forEach(function (theme) {
                cacheAndWatchTheme(app, theme);
            });
        })
    });
}
function initThemeFilesWatch(app) {
    utils.tick(function () {
        var viewsPath = utils.getViewsPath();
        var dbAction = new DBActions.DBActions(app.set("db"), {modelName: "Theme"});
        dbAction.get("getAll", null, function (err, themes) {
            if (err) throw err;
            themes.forEach(function (theme) {
                cacheAndWatchTheme(app, theme);
            });
        })
    });
}
function initThemeFilesWatch ( app ) { utils . tick ( function ( ) { var viewsPath = utils . getViewsPath ( ) ; var dbAction = new DBActions . DBActions ( app . set ( "db" ) , { modelName : "Theme" } ) ; dbAction . get ( "getAll" , null , function ( err , themes ) { if ( err ) throw err ; themes . forEach ( function ( theme ) { cacheAndWatchTheme ( app , theme ) ; } ) ; } ) } ) ; }
Initiates file watcher and caching of theme's css and js files.
@param app
Initiates file watcher and caching of theme s css and js files .