An open API service indexing awesome lists of open source software.

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

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 variables

e.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