easy-ejs-compiler

Easily generate html files from EJS templates.

Usage no npm install needed!

<script type="module">
  import easyEjsCompiler from 'https://cdn.skypack.dev/easy-ejs-compiler';
</script>

README

easy-ejs-compiler

npm version License: GPL v2

Easily generate html files from EJS templates.

Installation

Use NPM:

$ npm i easy-ejs-compiler

Use Yarn:

$ yarn add easy-ejs-compiler

Usage

$ easy-ejs-compiler INPUT_DIR {OPTIONS}

Options:

-o --output   The output directory for rendered files.
-d --data     The "data" arguments of EJS renderer. (file path or JSON strings)
-O --options  The "options" arguments of EJS renderer. ( file path or JSON strings)
-v --version  Print the easy-ejs-renderer version number

Notice

If you do not set the --output option, the results will be output to the console.