Egg::Dispatch - Base class for dispatch.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Dispatch - Base class for dispatch.

DESCRIPTION

Top

It is a base class for dispatch.

To do the function as Dispatch, necessary minimum method is offered.

Egg::Dispatch::Standard, Egg::Dispatch::Fast,

METHODS

Top

dispatch_map ([DISPATCH_HASH])

The setting of dispatch is returned.

When DISPATCH_HASH is given, it is set as dispatch.

  Egg->dispatch_map (
    _default => sub {},
    hoge     => sub { ... },
    );

* Alias = run_modes

HANDLER METHODS

Top

Egg::Base has been succeeded to.

new

Constructor.

action

$e->action is returned.

stash

$e->stash is returned.

config

$e->config is returned.

page_title

$e->page_title is returned.

target_action

The URI passing to decided action is assembled and it returns it.

mode

Accessor to treat mode.

label

Accessor to treat label.

default_mode

The mode of default is returned.

It is revokable in 'deispath_default_name' of the configuration. Default is '_default'.

default_name

The template name of default is returned.

It is revokable in 'template_default_name' of the configuration. Default is 'index'.

SEE ALSO

Top

Egg::Release, Egg::Base, Egg::Dispatch::Standard, Egg::Dispatch::Fast,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.