Alexis Sukrieh > Dancer-2.0000_01 > Dancer::Plugin::Ajax

Download:
Dancer-2.0000_01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 2.0000_01   Source   Latest Release: Dancer-1.3123

NAME ^

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

VERSION ^

version 2.0000_01

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 ^

Dancer Core Developers

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Alexis Sukrieh.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: