NAME

Dancer::Plugin::MobileDevice - make a dancr app mobile-aware

SYNOPSIS

package MyWebApp;
use Dancer;
use Dancer::Plugin::MobileDevice;

get '/' => sub {
    if (is_mobile_device) {
        # do something for mobile
    }
    else {
        # do something for regular agents
    }
};

AUTHOR

Alexis Sukrieh, <sukria at sukria.net>

BUGS

Please report any bugs or feature requests to http://github.com/sukria/Dancer-Plugin-MobileDevice/issues

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Dancer::Plugin::MobileDevice

You can also look for information at:

ACKNOWLEDGEMENTS

This plugin was initially written for an artilce of the Dancer advent calendar 2010.

LICENSE AND COPYRIGHT

Copyright 2010 Alexis Sukrieh.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.