Natal Ngétal > Dancer-Plugin-Browser-0.4 > Dancer::Plugin::Browser::Detect

Download:
Dancer-Plugin-Browser-0.4.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Dancer-Plugin-Browser-1.130570

NAME ^

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

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.

AUTHOR ^

Natal Ngétal, <hobbestigrou@erakis.im>

SEE ALSO ^

Dancer HTTP::BrowserDetect

syntax highlighting: