NAME
Ado - busy or delaying activity; bustle; fuss.
SYNOPSIS
require Mojolicious::Commands;
Mojolicious::Commands->start_app('Ado');
ATTRIBUTES
Ado inherits all attributes from Mojolicious.
METHODS
Ado inherits all methods from Mojolicious and implements the following new ones.
startup
The startup method is where everything begins. Return $apps void.
load_config
Loads the configuration file $app->home/etc/ado.conf
. Returns $app.
load_plugins
Loads plugins listed in $config->{plugins}
. This is an ARRAYREF
in which each element is a HASHREF
with keys name
and config
. The name of the plugin is expected to be string that can be passed to "plugin" in Mojolicious. The config
values is another HASHREF
containing the configuration for the plugin. Plugins can be Mojolicious or Ado specific plugins. Every Ado::Plugin::Foo must inherit from Ado::Plugin which ISA
Mojolicious::Plugin. Of course Mojolicious plugins can be used - we count on this. There are plenty of examples on CPAN. Returns $app.
load_routes
Loads predefined routes from $config->routes
. This is an ARRAYREF
in which each element is a HASHREF
with keys corresponding to a method name and value the parameters that will be passed tot he method. Currently we use the route
value to pass it to "route" in Mojolicious::Routes,params
value is the second parameter to instantiate the route. via
and to
values are passed to the newly created route. See Mojolicious::Routes::Route and Mojolicious::Guides::Routing for more.
Returns $app.
define_hooks
Defines some hooks to intervene in the default workflow of the requests. Returns $app.
SPONSORS
The original author
SEE ALSO
Mojolicious, Ado::Manual, http://www.thefreedictionary.com/ado,
AUTHOR
Красимир Беров (Krasimir Berov)
COPYRIGHT AND LICENSE
Copyright 2013 Красимир Беров (Krasimir Berov).
This program is free software, you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License v3 (LGPL-3.0). You may copy, distribute and modify the software provided that modifications are open source. However, software that includes the license may release under a different license.
See http://opensource.org/licenses/lgpl-3.0.html for more information.