1.0.0 • Published 5 years ago
ejs-all v1.0.0
ejs-all
Compile all ejs files in bulk.
Installation
npm i ejs-all -g
Features
- Support
watchmode - Support subdirectories
- Keep directory structure from source and destination
- In
watchmode, only compile related files change The result is beautified by default
Example
To compile all files run
ejs-all --input=src/ejs --data=src/ejs/data.json --output=dist/htmlFor watch mode run
ejs-all --input=src/ejs --data=src/ejs/data.json --output=dist/html --watchOptions
| Parameter | Description |
|---|---|
--input=[dir] | Required. Input directory |
--data=[file.json] | Required. Data file |
--output=[dir] | Required. Output directory |
--watch | Enable watch mode |
--delay=[ms] | The millisecond delay between a file change and task execution. Default: 200 |
FAQ
Can i change the ejs option ?
No, all options are default
The included files are also compiled, how to ignore it ?
For partial files, use an underscore for the first letter of the filename. Example: _sidebar.ejs
1.0.0
5 years ago