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

NAME

Mojolicious::Plugin::AgentCondition - Agent Condition Plugin

SYNOPSIS

    # Mojolicious
    $self->plugin('agent_condition');
    $self->routes->route('/:controller/:action')->over(agent => qr/Firefox/);

    # Mojolicious::Lite
    plugin 'agent_condition';
    get '/' => (agent => qr/Firefox/) => sub {...};

DESCRIPTION

Mojolicous::Plugin::AgentCondition is a routes condition for user agent based routes.

METHODS

Mojolicious::Plugin::AgentCondition inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

    $plugin->register;

SEE ALSO

Mojolicious, Mojolicious::Book, http://mojolicious.org.