
Dancer::Plugin::Ajax - a plugin for adding Ajax route handlers

package MyWebApp;
use Dancer;
use Dancer::Plugin::Ajax;
ajax '/check_for_update' => sub {
# ... some Ajax code
};
dance;

The ajax keyword which is exported by this plugin allow you to define a route handler optimized for Ajax queries.
The route handler code will be compiled to behave like the following:

This module has been written by Alexis Sukrieh <sukria@sukria.net>