express-ajax

Handle AJAX requests automatically

npm install express-ajax
1 downloads in the last day
5 downloads in the last week
18 downloads in the last month

express-ajax

Automatically AJAX requests handling middleware for Express framework

Installation

npm install express-ajax

Usage

To be able return only your view without it's layout, in case if request came through XmlHttpRequest, just include this middleware in your your Express configuration section. No need to do additional changes in your code.


app.configure(function() {
  app.use(require('express-ajax'));
});

That's it

npm loves you