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.

Readme

Keywords

none

Package Sidebar

Install

npm i require-ejs

Weekly Downloads

22

Version

0.0.3

License

MIT

Last publish

Collaborators

  • fshost