Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

4

version

0.0.3

license

none

repository

githubgithub

last publish

collaborators

  • avatar