Frequently Asked Questions
Is there a way to automatically set per-page routing?
If you use a module called Mojolicious::Plugin::AutoRoute, you can simply place a template and it will automatically create a route for you.
#Mojolicious
$self->plugin('AutoRoute');
#Mojolicious::Lite
plugin'AutoRoute';
#Option
plugin'AutoRoute', route => $r;
Automatically generate routing by placing files --Mojolicious::Plugin::AutoRoute
Perl Web App Development Tutorial