Skip to content
Automatically AJAX requests handling middleware for Express framework http://movsisyan.com
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.travis.yml
README.md
index.js
package.json

README.md

express-ajax Build Status

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!

Something went wrong with that request. Please try again.