ejstmpl
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

EJS Template Engine

const EJSTmpl = require('ejstmpl');

// Define template search root
EJSTmpl.search_root = `${__dirname}/tmpl`;


// Init templates
const b = EJSTmpl.init('/b/b.html');
const tmpl = EJSTmpl.init('/a.html');

// Render template
console.log(tmpl.render({view:b.prepare({MSG:"HI"})}), "\n");

// Release all caches
EJSTmpl.release();

Readme

Keywords

Package Sidebar

Install

npm i ejstmpl

Weekly Downloads

2

Version

0.9.1

License

ISC

Unpacked Size

14 kB

Total Files

14

Last publish

Collaborators

  • jcloudyu