Norse Polytheistic Mythology
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    express-ajaxpublic

    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!

    Keywords

    none

    install

    npm i express-ajax

    Downloadslast 7 days

    1

    version

    1.0.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar