Dancer::Plugin::Browser::Detect - Provides an easy to have info of the browser.
version 1.130570
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;
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
Dancer HTTP::BrowserDetect
Natal Ngétal
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.
To install Dancer::Plugin::Browser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Browser
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Browser
For more information on module installation, please visit the detailed CPAN module installation guide.