Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Initial release based on kraih's Mojolicious hack of the day: Mojolyst
- Loading branch information
Stefan Adams
committed
Apr 24, 2017
1 parent
ec0bb18
commit b98a95c
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
0.01 Not Released | ||
0.01 2017-04-24T14:59:32-0500 | ||
- Initial release based on kraih's Mojolicious hack of the day: Mojolyst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
NAME | ||
Mojolicious::Plugin::Mojolyst - Mojolicious::Lite syntax in a full | ||
Mojolicious app. | ||
|
||
SYNOPSIS | ||
# Mojolicious | ||
$self->plugin('Mojolyst' => {controllers => 'MyApp::Controller'}); | ||
|
||
# Mojolicious::Lite | ||
plugin 'Mojolyst' => {controllers => 'MyApp::Controller'}; | ||
|
||
# In your MyApp::Controller controller | ||
package MyApp::Controller::Foo; | ||
use Mojolicious::Lite; | ||
|
||
get '/' => {text => 'Welcome to Mojolyst!'}; | ||
|
||
1; | ||
|
||
DESCRIPTION | ||
Mojolicious::Plugin::Mojolyst is a Mojolicious plugin to hijack the | ||
Mojolicious router and turn it into a more Catalyst-ish decentralized | ||
one. | ||
|
||
METHODS | ||
Mojolicious::Plugin::Mojolyst inherits all methods from | ||
Mojolicious::Plugin and implements the following new ones. | ||
|
||
register | ||
$plugin->register(Mojolicious->new); | ||
|
||
Register plugin in Mojolicious application. | ||
|
||
SEE ALSO | ||
Mojolicious, Mojolicious::Guides, <http://mojolicious.org>, | ||
<http://blog.mojolicious.org/post/157278582436/mojolicious-hack-of-the-d | ||
ay-mojolyst>. | ||
|