eta-compiler

1.0.0 • Public • Published

eta-compiler

Simple eta embedded JS template engine compiler with --watch support

Installation

npm i eta-compiler -g

Features

  • watch support
  • fast, only compile changed files

Example

eta-compiler --input=src/eta --data=src/eta/data.json --output=dist/html

eta-compiler --input=src/eta --data=src/eta/data.json --output=dist/html --watch

eta-compiler --input=src/html --ext=html --data=src/eta/data.json --output=dist/html

Options

  • --input=[dir] Input directory
  • --ext=[ext] Input extension, default: eta
  • --data=[file.json] Data file
  • --output=[dir] Output directory
  • --watch Enable watch

Notes

  • Use [_filename.ext] for partial or layout file
  • Renamed Name of the data object. Default it changed to data

Readme

Keywords

none

Package Sidebar

Install

npm i eta-compiler

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.94 kB

Total Files

5

Last publish

Collaborators

  • erwinheldy