Amon2::Plugin::Web::Woothee - The Amon2 Plugin for detecting the User Agent by Woothee
package MyApp::Web; use Amon2::Web; __PACKAGE__->load_plugin('Web::Woothee');
Amon2::Plugin::Web::Woothee provides some methods for detecting User Agent on context.
You can call below methods on context.
NOTE that these methods are enabled after BEFORE_DISPATCH.
$c->ua_is_pc; # If User Agent is PC Browser, it will be 1.
To get the woothee. You can call the Woothee parameters as the method.
$c->woothee->name; $c->woothee->category; $c->woothee->os; $c->woothee->vender; $c->woothee->version;
Amon2::Plugin::Web::Woothee is hosted on github <http://github.com/bayashi/Amon2-Plugin-Web-Woothee>
Welcome your patches and issues :D
Dai Okabayashi <bayashi@cpan.org>
Amon2, Woothee and Plack::Middleware::Woothee
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Amon2::Plugin::Web::Woothee, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Amon2::Plugin::Web::Woothee
CPAN shell
perl -MCPAN -e shell install Amon2::Plugin::Web::Woothee
For more information on module installation, please visit the detailed CPAN module installation guide.