MATSUNO★Tokuhiro"'<xmp>
/
6.18
(TOKUHIROM on 2026-02-28)
6.17
(TOKUHIROM on 2026-02-27)
6.16
(TOKUHIROM on 2022-11-01)
6.15
(TOKUHIROM on 2020-11-09)
6.14
(TOKUHIROM on 2020-04-15)
6.13
(TOKUHIROM on 2016-04-08)
6.12
(TOKUHIROM on 2015-06-17)
6.11
(TOKUHIROM on 2014-12-15)
6.10
(TOKUHIROM on 2014-10-06)
6.09
(TOKUHIROM on 2014-08-06)
6.08
(TOKUHIROM on 2014-08-04)
6.07
(TOKUHIROM on 2014-08-01)
6.06
(TOKUHIROM on 2014-08-01)
6.05
(TOKUHIROM on 2014-08-01)
6.04
(TOKUHIROM on 2014-07-31)
6.03
(TOKUHIROM on 2014-07-30)
6.02
(TOKUHIROM on 2014-02-14)
6.01
(TOKUHIROM on 2014-01-27)
6.00
(TOKUHIROM on 2013-11-12)
5.16
(TOKUHIROM on 2013-10-31)
5.15
(TOKUHIROM on 2013-10-30)
5.14
(TOKUHIROM on 2013-10-30)
5.13
(TOKUHIROM on 2013-10-29)
5.12
(TOKUHIROM on 2013-10-28)
5.11
(TOKUHIROM on 2013-10-22)
5.10
(TOKUHIROM on 2013-10-20)
5.09
(TOKUHIROM on 2013-10-19)
5.08
(TOKUHIROM on 2013-10-18)
5.07
(TOKUHIROM on 2013-10-18)
5.06
(TOKUHIROM on 2013-10-16)
5.05
(TOKUHIROM on 2013-10-16)
5.04
(TOKUHIROM on 2013-10-15)
5.03
(TOKUHIROM on 2013-10-10)
5.02
(TOKUHIROM on 2013-10-10)
5.01
(TOKUHIROM on 2013-10-09)
5.00
(TOKUHIROM on 2013-10-09)
4.06
(TOKUHIROM on 2013-10-04)
4.05
(TOKUHIROM on 2013-10-04)
4.04
(TOKUHIROM on 2013-10-03)
4.03
(TOKUHIROM on 2013-09-17)
4.02
(TOKUHIROM on 2013-09-17)
4.01
(TOKUHIROM on 2013-08-22)
4.00
(TOKUHIROM on 2013-08-21)
3.99_01 DEV
(TOKUHIROM on 2013-08-20)
3.87
(TOKUHIROM on 2013-08-14)
0
(TOKUHIROM on 2013-08-14)
3.86
(TOKUHIROM on 2013-08-14)
3.85
(TOKUHIROM on 2013-06-13)
3.84
(TOKUHIROM on 2013-06-12)
3.83
(TOKUHIROM on 2013-06-01)
3.82
(TOKUHIROM on 2013-05-28)
3.81
(TOKUHIROM on 2013-05-27)
3.80
(TOKUHIROM on 2013-04-21)
3.79
(TOKUHIROM on 2013-04-18)
3.78
(TOKUHIROM on 2013-03-29)
3.77
(TOKUHIROM on 2013-03-14)
3.76
(TOKUHIROM on 2013-03-14)
3.75
(TOKUHIROM on 2013-03-07)
3.74
(TOKUHIROM on 2013-03-02)
3.73
(TOKUHIROM on 2013-03-02)
3.72
(TOKUHIROM on 2013-02-12)
3.71
(TOKUHIROM on 2013-02-12)
3.70
(TOKUHIROM on 2013-02-12)
3.69-TRIAL DEV
(TOKUHIROM on 2013-02-09)
3.68
(TOKUHIROM on 2013-02-05)
3.66
(TOKUHIROM on 2012-12-15)
3.65
(TOKUHIROM on 2012-12-12)
3.64
(TOKUHIROM on 2012-12-05)
3.63
(TOKUHIROM on 2012-11-20)
3.62
(TOKUHIROM on 2012-11-12)
3.61
(TOKUHIROM on 2012-10-23)
3.60
(TOKUHIROM on 2012-10-20)
3.57
(TOKUHIROM on 2012-10-17)
3.55
(TOKUHIROM on 2012-10-06)
3.54
(TOKUHIROM on 2012-10-06)
3.53
(TOKUHIROM on 2012-08-20)
3.52
(TOKUHIROM on 2012-08-10)
3.51
(TOKUHIROM on 2012-08-08)
3.50
(TOKUHIROM on 2012-08-07)
3.39
(TOKUHIROM on 2012-08-06)
3.38
(TOKUHIROM on 2012-08-01)
3.37
(TOKUHIROM on 2012-06-29)
3.36
(TOKUHIROM on 2012-06-25)
3.35
(TOKUHIROM on 2012-04-05)
3.34
(TOKUHIROM on 2012-03-26)
3.33
(TOKUHIROM on 2012-03-23)
3.32
(TOKUHIROM on 2011-12-13)
3.31
(TOKUHIROM on 2011-11-29)
3.30
(TOKUHIROM on 2011-11-27)
3.29
(TOKUHIROM on 2011-11-25)
3.28
(TOKUHIROM on 2011-11-20)
3.27
(TOKUHIROM on 2011-11-16)
3.26
(TOKUHIROM on 2011-11-16)
3.25
(TOKUHIROM on 2011-11-14)
3.24
(TOKUHIROM on 2011-11-13)
3.22
(TOKUHIROM on 2011-11-09)
3.21
(TOKUHIROM on 2011-11-09)
3.20
(TOKUHIROM on 2011-11-09)
3.19
(TOKUHIROM on 2011-11-09)
3.18
(TOKUHIROM on 2011-11-06)
3.17
(TOKUHIROM on 2011-11-05)
3.16
(TOKUHIROM on 2011-11-04)
3.15
(TOKUHIROM on 2011-11-02)
3.14
(TOKUHIROM on 2011-10-29)
3.13
(TOKUHIROM on 2011-10-24)
3.12
(TOKUHIROM on 2011-10-18)
3.11
(TOKUHIROM on 2011-10-17)
3.10
(TOKUHIROM on 2011-10-16)
3.09
(TOKUHIROM on 2011-10-16)
3.07
(TOKUHIROM on 2011-10-14)
3.06
(TOKUHIROM on 2011-10-14)
3.05
(TOKUHIROM on 2011-10-14)
3.04
(TOKUHIROM on 2011-10-11)
3.03
(TOKUHIROM on 2011-10-11)
3.02
(TOKUHIROM on 2011-10-10)
3.01
(TOKUHIROM on 2011-10-09)
3.00
(TOKUHIROM on 2011-10-08)
2.56
(TOKUHIROM on 2011-10-07)
2.55
(TOKUHIROM on 2011-10-07)
2.54
(TOKUHIROM on 2011-09-23)
2.53
(TOKUHIROM on 2011-09-22)
2.52
(TOKUHIROM on 2011-09-20)
2.50
(TOKUHIROM on 2011-09-03)
2.49
(TOKUHIROM on 2011-07-27)
2.48
(TOKUHIROM on 2011-07-27)
2.47
(TOKUHIROM on 2011-07-26)
2.46
(TOKUHIROM on 2011-07-21)
2.45
(TOKUHIROM on 2011-07-12)
2.44
(TOKUHIROM on 2011-07-10)
2.43
(TOKUHIROM on 2011-07-10)
2.42
(TOKUHIROM on 2011-07-10)
2.41
(TOKUHIROM on 2011-07-10)
2.40
(TOKUHIROM on 2011-07-09)
2.39
(TOKUHIROM on 2011-07-07)
2.38
(TOKUHIROM on 2011-06-14)
2.37
(TOKUHIROM on 2011-06-06)
2.36
(TOKUHIROM on 2011-05-30)
2.35
(TOKUHIROM on 2011-05-15)
2.34
(TOKUHIROM on 2011-05-14)
2.33
(TOKUHIROM on 2011-05-14)
2.32
(TOKUHIROM on 2011-05-01)
2.31
(TOKUHIROM on 2011-05-01)
2.30
(TOKUHIROM on 2011-03-09)
2.29
(TOKUHIROM on 2011-03-06)
2.28
(TOKUHIROM on 2011-03-06)
2.27
(TOKUHIROM on 2011-03-02)
2.26
(TOKUHIROM on 2011-03-02)
2.25
(TOKUHIROM on 2011-02-28)
2.24
(TOKUHIROM on 2011-02-28)
2.23
(TOKUHIROM on 2011-02-27)
2.22
(TOKUHIROM on 2011-02-26)
2.21
(TOKUHIROM on 2011-02-23)
2.20
(TOKUHIROM on 2011-02-23)
2.19
(TOKUHIROM on 2011-02-23)
2.18
(TOKUHIROM on 2011-02-23)
2.17
(TOKUHIROM on 2011-02-22)
2.16
(TOKUHIROM on 2011-02-21)
2.15
(TOKUHIROM on 2011-02-17)
2.14
(TOKUHIROM on 2011-02-01)
2.13
(TOKUHIROM on 2011-01-28)
2.12
(TOKUHIROM on 2011-01-02)
2.11
(TOKUHIROM on 2010-12-17)
2.10
(TOKUHIROM on 2010-12-17)
2.09
(TOKUHIROM on 2010-12-14)
Amon2-3.87
27 ++
/
README.md
NAME
Amon2 - lightweight web application framework
SYNOPSIS
package MyApp;
use parent qw/Amon2/;
use Amon2::Config::Simple;
sub load_config { Amon2::Config::Simple->load(shift) }
DESCRIPTION
Amon2 is simple, readable, extensible, STABLE , FAST web application framework based on Plack .
METHODS
CLASS METHODS for Amon2 class
CLASS METHODS for inherited class
MyApp->config()
This method returns configuration information. It is generated by MyApp->load_config().
MyApp->mode_name()
This is a mode name for Amon2. The default implementation of this method is:
sub mode_name { $ENV{PLACK_ENV} }
You can override this method if you want to determine the mode by other method.
MyApp->new()
Create new context object.
MyApp->bootstrap()
my $c = MyApp->bootstrap();
Create new context object and set it to global context. When you are writing CLI script, setup the global context object by this method.
MyApp->base_dir()
This method returns the application base directory.
MyApp->load_plugin($module_name[, \%config])
This method loads the plugin for the application.
$module_name package name of the plugin. You can write it as two form like DBIx::Class :
__PACKAGE__->load_plugin("Web::HTTPSession"); # => loads Amon2::Plugin::Web::HTTPSession
If you want to load a plugin in your own name space, use the '+' character before a package name, like following:
__PACKAGE__->load_plugin("+MyApp::Plugin::Foo"); # => loads MyApp::Plugin::Foo
MyApp->load_plugins($module_name[, \%config ], ...)
Load multiple plugins at one time.
If you want to load a plugin in your own name space, use the '+' character before a package name like following:
__PACKAGE__->load_plugins("+MyApp::Plugin::Foo"); # => loads MyApp::Plugin::Foo
MyApp->load_config()
You can get a configuration hashref from config/$ENV{PLACK_ENV}.pl. You can override this method for customizing configuration loading method.
MyApp->add_config()
DEPRECATED.
MyApp->debug_mode()
((EXPERIMENTAL))
This method returns a boolean value. It returns true when $ENV{AMON2_DEBUG} is true value, false otherwise.
You can override this method if you need.
PROJECT LOCAL MODE
THIS MODE IS HIGHLY EXPERIMENTAL
Normally, Amon2's context is stored in a global variable.
This module makes the context to project local.
It means, normally context class using Amon2 use $Amon2::CONTEXT in each project, but context class using ["PROJECT LOCAL MODE"](#PROJECT LOCAL MODE) use $MyApp::CONTEXT.
It means you can't use code depend <Amon2-context > and <Amon2-context>> under this mode.>
NOTES ABOUT create_request
Older Amon2::Web::Request has only 1 argument like following, it uses Amon2->context to get encoding:
sub create_request {
my ($class, $env) = @_;
Amon2::Web::Request->new($env);
}
If you want to use ["PROJECT LOCAL MODE"](#PROJECT LOCAL MODE), you need to pass class name of context class, as following:
sub create_request {
my ($class, $env) = @_;
Amon2::Web::Request->new($env, $class);
}
METHODS
This module inserts 3 methods to your context class.
MyApp->context()
Shorthand for $MyApp::CONTEXT
MyApp->set_context($context)
It's the same as:
$MyApp::CONTEXT = $context
my $guard = MyApp->context_guard()
Create new context guard class.
It's the same as:
Amon2::ContextGuard->new(shift, \$MyApp::CONTEXT);
DOCUMENTS
More complicated documents are available on http://amon.64p.org/
SUPPORTS
#amon at irc.perl.org is also available.
AUTHOR
Tokuhiro Matsuno tokuhirom@gmail.com
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.