Mojolicious::Plugin::AutoRoute become more stable
I release Mojolicious::Plugin::AutoRoute 0.22.
Mojolicious::Plugin::AutoRoute(CPAN)
Until now, Mojolicious::Plugin::AutoRoute depended Mojolicious internal structure, but Mojolicious::Plugin::AutoRoute become more stable because this plugin use only public features of Mojolicious. The following is the document of Mojolicious::Plugin::AutoRoute.
Mojolicious::Plugin::AutoRoute is a Mojolicious plugin to create routes automatically.
If you put templates into auto directory, the corresponding routes is created automatically.
For example:
TEMPLATES ROUTES templates/auto/index.html.ep # / /foo.html.ep # /foo /foo/bar.html.ep # /foo/bar /foo/bar/baz.html.ep # /foo/bar/baz
I like PHP simplicity. All thing needed is that you put PHP files into some directory, and write program. You don't need to create routes manually.
This plugin gives PHP simplicity to Mojolicious.
EXAMPLE:
use Mojolicious::Lite; # AutoRoute plugin 'AutoRoute'; app->start; __DATA__ @@ auto/index.html.ep / @@ auto/foo.html.ep /foo @@ auto/bar.html.ep /bar @@ auto/foo/bar/baz.html.ep /foo/bar/baz
Leave a comment