ejs-all
v1.0.0
Published
Compile all ejs files in bulk
Maintainers
Readme
ejs-all
Compile all ejs files in bulk.
Installation
npm i ejs-all -g
Features
Support
watchmodeSupport subdirectories
Keep directory structure from source and destination
In
watchmode, only compile related files changeThe 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
