NAME

Dancer::Plugin::Browser::Detect - Provides an easy to have info of the browser.

VERSION

version 1.130570

SYNOPSIS

use Dancer;
use Dancer::Plugin::Browser::Detect;

get '/' => sub {
    my $browser = browser_detect();

    if ( $browser->windows && $browser->ie && $browser->major() < 6 ) {
        return "You have big failed, change your os, browser, and come back late.";
    }
};

dance;

DESCRIPTION

Provides an easy to have info of the browser. keyword within your Dancer application.

METHODS

browser_detect

browser_detect()
or
<% browser_detect %>

To have info of the browser

input: none
output: A HTTP::BrowserDetect object

SEE ALSO

Dancer HTTP::BrowserDetect

AUTHOR

Natal Ngétal

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Natal Ngétal.

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