NAME

MojoliciousX::Automata - MojoX::Automata sugar for Mojolicious

SYNOPSIS

package
MyApp;

use strict;
use warnings;

use base 'MojoliciousX::Automata';

# You get this by default
#__PACKAGE__->attr(automata => (default => sub { MojoX::Automata->new }));

# You get this by default
#sub dispatch {
#    my ($self, $c) = @_;

#    # Run automata
#    $self->automata->run($c);
#}

...

# You get same thing but with default dispatch method and already created
# attribute 'automata' that is holding MojoX::Automata object

DESCRIPTION

MojoliciousX::Automata is a Mojolicious finite automata dispatching mechanizm. It adds some sugar, so you don't have to create attribute that will hold MojoX::Automata object and you get the default dispatch method that calls automata->run also.

For more info see MojoX::Automata documentation.