Skip to content

sarioglu/parcel-plugin-ejs-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parcel-plugin-ejs-template

EJS support for Parcel bundler

Installation

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:

module.exports = {
  locals: {
    foo: "bar",
  },
};

These variables will be available in your .ejs file.

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

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

About

EJS support for Parcel bundler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published