Skip to content

sydcanem/edotjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Using dot template engine with express

Resources

Stars

Watchers

Forks

Packages

No packages published