The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dancer2::Plugin::BrowserDetect - Provides an easy to have info of the browser.

VERSION

version 1.163590

SYNOPSIS

    use Dancer2;
    use Dancer2::Plugin::BrowserDetect;

    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

CONTRIBUTING

This module is developed on Github at:

https://github.com/hobbestigrou/Dancer2-Plugin-Browser

Feel free to fork the repo and submit pull requests

BUGS

Please report any bugs or feature requests in github.

SUPPORT

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

    perldoc Dancer2::Plugin::BrowserDetect

SEE ALSO

Dancer HTTP::BrowserDetect Catalyst::TraitFor::Request::BrowserDetect Mojolicious::Plugin::BrowserDetect Dancer::Plugin::Browser

AUTHOR

Natal Ngétal

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.