edotjs

0.5.0 • Public • Published

Configure

var edotjs = require( 'edotjs' );

// Configure express to render
// .html views using dot.js
app.set( 'view engine', 'html' );
app.engine( 'html', edotjs.renderFile );

app.get( '/', function ( req, res ) {

	edotjs.defines = {}; // dot.js defines
    res.render( 'index', some data );	
} );

Supports

  • All features of dot.js
  • Template and partials caching

Examples coming soon.

/edotjs/

    Package Sidebar

    Install

    npm i edotjs

    Weekly Downloads

    0

    Version

    0.5.0

    License

    MIT

    Last publish

    Collaborators

    • sydcanem