Dancer2::Plugin::BrowserDetect - Provides an easy to have info of the browser.
version 1.141180
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;
Provides an easy to have info of the browser. keyword within your Dancer application.
browser_detect() or <% browser_detect %>
To have info of the browser
input: none output: A HTTP::BrowserDetect object
This module is developed on Github at:
https://github.com/hobbestigrou/Dancer2-Plugin-Browser
Feel free to fork the repo and submit pull requests
Please report any bugs or feature requests in github.
You can find documentation for this module with the perldoc command.
perldoc Dancer2::Plugin::BrowserDetect
Dancer HTTP::BrowserDetect Catalyst::TraitFor::Request::BrowserDetect Mojolicious::Plugin::BrowserDetect Dancer::Plugin::Browser
Natal Ngétal
This software is copyright (c) 2014 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.
To install Dancer2::Plugin::BrowserDetect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::BrowserDetect
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::BrowserDetect
For more information on module installation, please visit the detailed CPAN module installation guide.