Express middleware for json-views
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
test
.gitignore
.travis.yml
README.md
gulpfile.js
index.d.ts
index.ts
package.json
tsconfig.json

README.md

json-views-express-middleware

Easily send objects in express responses using JSON views.

Build Status Code Climate Test Coverage

Example

var express = require('express');
var views = require('json-views');
var viewsMiddleware = require('json-views-express-middleware');

var app = express();
app.use(viewsMiddleware.middleware(views));

app.get('/', function(req, res, next) {
  res.view('test', {});  
});