# parcel-plugin-ejs-template

> EJS support for Parcel bundler

Latest version **0.2.0** (published 2020-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install parcel-plugin-ejs-template
pnpm add parcel-plugin-ejs-template
yarn add parcel-plugin-ejs-template
bun add parcel-plugin-ejs-template
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2020-04-17 |
| First published | 2019-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Mehmet Sarıoğlu |
| Maintainers | sarioglu |
| Keywords | parcel, ejs, html templating |

## Links

- npm: https://www.npmjs.com/package/parcel-plugin-ejs-template
- Repository: https://github.com/sarioglu/parcel-plugin-ejs-template
- Issues: https://github.com/sarioglu/parcel-plugin-ejs-template/issues
- npm.io page: https://npm.io/package/parcel-plugin-ejs-template

## Dependencies (2)

- [ejs](https://npm.io/package/ejs.md) ^3.0.2
- [parcel-bundler](https://npm.io/package/parcel-bundler.md) ^1.12.4

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2020-04-17
- 0.1.2 — 2019-07-18
- 0.1.1 — 2019-04-14
- 0.1.0 — 2019-04-14

## README

# parcel-plugin-ejs-template

EJS support for Parcel bundler

## Installation

```bash
npm install -D parcel-plugin-ejs-template
```

## Usage

Use your `.ejs` files as entry files to start bundling using `parcel-bundler`.

## Customization

You can pass some local variables to your `.ejs` file by creating a config file named `ejs.config.js` in your directory. File schema should be like following example:

```js
module.export = {
  locals: {
    foo: "bar",
  },
};
```

These variables will be available in your `.ejs` file.

```html
<div>
  <%= locals.foo %>
</div>
```

For more information, please refer to https://parceljs.org/ and https://ejs.co/

---
_Source: https://npm.io/package/parcel-plugin-ejs-template · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
