The way to write Ruby + Middleman application with Perl.

Middleman is ruby web framework to makes developing stand-alone websites simple.

Middleman

Middleman(GitHub)

If you want middleman in Perl, you try the following way.

Mojolicious + Mojolicious::Plugin::AutoRoute

use Mojolicious::Lite;

plugin 'AutoRoute';

You can place template file into auto directory.

  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

You can develop web application with PHP style and can also use Mojolicious all features. You don't need to write routing and controller.

3 Comments

Dancer has a similar option which generates the routes for you. It's called auto_page (http://search.cpan.org/~yanick/Dancer-1.3119/lib/Dancer/Config.pm#auto_page_(boolean))

This is a bit like how Poet works for Mason 2

Leave a comment

About Yuki Kimoto

user-pic I am Yuki Kimoto, Japanese Perl programmer. I create tutorial site in Japanese and English. I create Perl module and upload it to CPAN. I create Web application in Github.