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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    54
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    54
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i require-ejs

Weekly Downloads

55

Version

0.0.3

License

MIT

Last publish

Collaborators

  • fshost