Sledge::Engine

ikebe on 2006-11-01T12:07:12

I wrote the Sledge::Engine, the modern dispatcher of Sledge application.

http://svn.shebang.jp/repos/Sledge-Engine

write application top-level module. MyApp.pm

package MyApp;
use Sledge::Engine;

__PACKAGE__->setup;


mod_perl handler.

    SetHandler perl-script
    PerlHandler MyApp 



CGI mode. write index.cgi.
#!/usr/bin/perl
use strict;
use MyApp;

MyApp->run;


TODO: * handle extra path as arguments. (like Catalyst)
/item/detail/23 -> MyApp::Pages::Item->dispatch_detail with 1 argument '23'. * custom mapping rules. * mod_perl2 and FastCGI support.