Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

require-ejs

0.0.3 • Public • Published

### require-ejs

Allows requiring EJS template files as modules in Node.js. Requiring any file with an .ejs extension returns a compiled EJS template function.

installation

npm install require-ejs

about

After noticing that in the original EJS source there was code for registering an EJS file as a Node.js module, but that it did not work when I tried to use it, I forked and modified the EJS compiler source and wrote this extension. I have sent a pull request to the original repo but until if/when it is accepted I'm using this fork.

Keywords

none

Install

npm i require-ejs

DownloadsWeekly Downloads

152

Version

0.0.3

License

none

Last publish

Collaborators

  • avatar