How to use the ejs.renderFileAsync function in ejs

To help you get started, we’ve selected a few ejs 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 FirstLegoLeague / launcher / src / main / mhub / index.js View on Github external
    .then(() => ejs.renderFileAsync(MHUB_FILE_TEMPLATE, options))
    .then(content => fs.writeFileAsync(configFile, content))
github kaz / showcase / lib / route / clients.js View on Github external
const ssh = async ctx => {
	ctx.body = await ejs.renderFileAsync("./client/ssh.html", _getCfg(ctx, "SSH Keys"));
};
github FirstLegoLeague / launcher / src / main / caddy / index.js View on Github external
    .then(() => ejs.renderFileAsync(CADDY_FILE_TEMPLATE, {
      sites,
      envDir: CADDY_ENV_DIR
    }))
    .then(content => fs.writeFileAsync(caddyFile, content))
github kaz / showcase / lib / route / clients.js View on Github external
const mycase = async ctx => {
	ctx.body = await ejs.renderFileAsync("./client/mycase.html", _getCfg(ctx, "My Showcase"));
};
const allcase = async ctx => {
github kaz / showcase / lib / route / clients.js View on Github external
const index = async ctx => {
	ctx.body = await ejs.renderFileAsync("./client/index.html", _getCfg(ctx, "Status"));
};
const mycase = async ctx => {
github kaz / showcase / lib / route / clients.js View on Github external
const allcase = async ctx => {
	ctx.body = await ejs.renderFileAsync("./client/allcase.html", _getCfg(ctx, "All Showcase"));
};
const ssh = async ctx => {