Alexis Sukrieh > Dancer-1.3071 > Dancer::Plugin::Ajax

Download:
Dancer-1.3071.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Dancer-1.3123

NAME ^

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

SYNOPSIS ^

    package MyWebApp;

    use Dancer;
    use Dancer::Plugin::Ajax;

    ajax '/check_for_update' => sub {
        # ... some Ajax code
    };

    dance;

DESCRIPTION ^

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:

AUTHOR ^

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

syntax highlighting: