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;