1.0.3 • Published 1 year ago

ejs-html-compiler v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

A utility module module that converts ejs template to static html files.

Installation

$ npm install ejs

Features

  • Select source and destination folder
  • Compile multiple files recursively
  • Preserve source file architecture
  • Automatically resolve partial template inclusions
  • Custom rendering with EJS options

Usage

Simply import the module and specify the source and destination folders. The source folder contains your page templates. Static files will be generated in the destination folder. You can also specify options for EJS renderer (see ejs documentation).

WARNING : If your partial template are in the same folder, they will also be compiled.

const compiler = require('ejs-html-compiler');

compiler.build(/*source folder*/, /*destination folder*/);
compiler.build(/*source folder*/, /*destination folder*/, /*options*/);

License

Under Apache 2.0 license.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago