How to use the tmpl.cache.store function in tmpl

To help you get started, we’ve selected a few tmpl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github saggiyogesh / nodeportal / lib / BootstrapApp.js View on Github external
}
                catch (e) {
                }
                accConfig[acc][split[1]] = value;
            }
        });

        AppProperties.set("LOGIN_ACCOUNTS_CONFIG", accConfig);
    }

    //cache configs
    AppProperties.set("GLOBAL_CACHE_STORE", props["global.cache.store"]);
    AppProperties.set("DEFAULT_CACHE_EXPIRE", eval(props["default.cache.expire"])); //evals the string to int
    AppProperties.set("DB_CACHE_STORE", props["db.cache.store"]);
    AppProperties.set("BOTTOM_SCRIPTS_CACHE_STORE", props["bottom.scripts.cache.store"]);
    AppProperties.set("TMPL_CACHE_STORE", props["tmpl.cache.store"]);
    AppProperties.set("CACHE_REDIS_HOST", props["cache.redis.host"]);
    AppProperties.set("CACHE_REDIS_PORT", props["cache.redis.port"]);

    props["show.plugin.view.permission.error"] &&
    AppProperties.set("SHOW_PLUGIN_VIEW_PERMISSION_ERR", JSON.parse(props["show.plugin.view.permission.error"]));

    //error templates
    AppProperties.set("APP_404_ERROR_TMPL", props["app.404.error.tmpl"]);
    AppProperties.set("APP_500_ERROR_TMPL", props["app.500.error.tmpl"]);
    AppProperties.set("APP_401_ERROR_TMPL", props["app.401.error.tmpl"]);
    AppProperties.set("PLUGIN_ERROR_TMPL", props["plugin.error.tmpl"]);

}

tmpl

JavaScript micro templates.

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis