Skip to content

sm-bugu/nunjucks-component-extension-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nunjucks-component-extension-middleware

nunjucks-component-extension for express or connect

install

npm install nunjucks-component-extension-middleware --save

options

  1. viewPath: view path, this is required.
  2. config: nunjucks config, default watch is true, this is not required.

use case

var path = require('path');
var express = require('express');
var app = express();


app.use(require('nunjucks-component-extension-middleware')(path.join(__dirname, 'views'), {
	noCache: true
}));

then, you can use nunjucks and nunjucks-component-extension !

About

nunjucks-component-extension for express or connect

Resources

License

Stars

Watchers

Forks

Packages

No packages published