NAME

Egg::Dispatch::Fast - Another dispatch class.

SYNOPSIS

package MyApp::Dispatch;
use base qw/ Egg::Dispatch::Fast /;

Egg->dispatch_map(

  _default => {
    label=> 'index page.',
    action => sub { ... },
    },

  # When only the label is set, an empty CODE reference is set to action.
  # And, hooo.tt was set in the template.
  hooo => { label => 'hooo page.' },

  hoge => {
    label => 'hoge page',
    action => sub { ... },
    },

  boo => sub { ... },

  );

DESCRIPTION

EggDispatch::Standard it is a plugin to do more high-speed Dispatch.

As for 'dispatch_map', only a single hierarchy is treatable.

The regular expression etc. cannot be used for the key.

The value to the key should be CODE reference.

The argument passed for the CODE reference is Egg::Dispatch::Standard. It is similar.

METHODS

Egg::Dispatch has been succeeded to.

dispatch

The Egg::Dispatch::Fast::handler object is returned.

my $d= $e->dispatch;

HANDLER METHODS

mode_now

The action matched with 'dispatch_map' is returned as a mode.

* The value of 'default_mode' method is returned when failing in the match.

SEE ALSO

Egg::Release, Egg::Dispatch,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.