https://github.com/sarscode/parcel-transformer-ejs
Parcel v2 transformer plugin for EJS.
https://github.com/sarscode/parcel-transformer-ejs
ejs parcel parcel-bundler parcel-plugin parcel-transformer
Last synced: 6 months ago
JSON representation
Parcel v2 transformer plugin for EJS.
- Host: GitHub
- URL: https://github.com/sarscode/parcel-transformer-ejs
- Owner: sarscode
- License: mit
- Created: 2021-05-10T12:06:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-13T10:53:17.000Z (about 2 years ago)
- Last Synced: 2024-10-19T11:10:50.788Z (12 months ago)
- Topics: ejs, parcel, parcel-bundler, parcel-plugin, parcel-transformer
- Language: EJS
- Homepage: https://www.npmjs.com/package/parcel-transformer-ejs
- Size: 342 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parcel-transformer-ejs
Parcel v2 transformer plugin for EJS.
## Installation
```sh
npm i -D parcel-transformer-ejs
```## Configuration
```json
{
"extends": ["@parcel/config-default"],
"transformers": {
"*.ejs": ["parcel-transformer-ejs"]
}
}
```Reference [Parcel plugin configuration](https://parceljs.org/features/plugins/)
## Customization
You can add custom options for ejs templating engine using a `.ejsrc`, `.ejsrc.json`, `.ejsrc.js` or `ejs.config.js` file.
### Example
For example, you can set local variables using `.ejsrc`.
```json
{
"locals": {
"foo": "bar"
}
}
```For more information on customization options, see [EJS Options Documentation](https://ejs.co/#docs)
## License
MIT