https://github.com/artegoser/ejs-preprocessor
preprocessor fo ejs
https://github.com/artegoser/ejs-preprocessor
Last synced: 3 months ago
JSON representation
preprocessor fo ejs
- Host: GitHub
- URL: https://github.com/artegoser/ejs-preprocessor
- Owner: artegoser
- License: mit
- Created: 2021-07-05T10:22:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T07:24:04.000Z (about 2 years ago)
- Last Synced: 2025-02-17T20:14:14.583Z (4 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ejs-preprocessor
use ejs like preprocessor
# installation
`npm i ejsp -g`
# usage
create the ejsp.json file(this is config for ejs preprocessor)
example```json5
{
dir: ["testinput", "!testinput/components"], //! for exclude dir
outdir: "test/",
vars: { test: "hello" },
}
```dir - folder(s) with ejs files
outdir - The folder where the ejs files will be rendered
vars - ejs variablese.g.
`testinput/index.ejs will` be rendered to `test/index.html`
`testinput/components/menu.ejs` will not be rendered
`testinput/index.css` will be copied to `test/index.css`then run the command `ejsp` in the cmd