Uwe Voelker > Mojolicious-Plugin-BrowserDetect-0.002 > Mojolicious::Plugin::BrowserDetect

Download:
Mojolicious-Plugin-BrowserDetect-0.002.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Mojolicious-Plugin-BrowserDetect-0.003

NAME ^

Mojolicious::Plugin::BrowserDetect - HTTP::BrowserDetect integration for Mojolicious

VERSION ^

version 0.002

SYNOPSIS ^

  # in your App module
  $self->plugin('browser_detect');

  # in your Mojolicious controller
  $self->browser->...

  # e. g. in your root/index action
  if ($self->browser->mobile) {
      return $self->redirect_to('/mobile');
  }

DESCRIPTION ^

This Mojolicious plugin integrates HTTP::BrowserDetect.

SEE ALSO ^

HTTP::BrowserDetect

AUTHOR ^

Uwe Voelker <uwe@uwevoelker.de>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Uwe Voelker.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: