ejsify

1.0.0 • Public • Published

ejsify

EJS precompiler for Browserify.

Installation

npm install ejsify

Usage

If you're compiling your code from the command-line, include -t ejsify:

browserify -t ejsify index.js -o bundle.js

And then you can use require() and get back bundled EJS templates.

var index = require('./views/index.ejs')
 
document.body.innerHTML = index({ title: 'ejsify' })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    169
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    169
  • 0.1.0
    13
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i ejsify

Weekly Downloads

139

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hughsk