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.
<Location
/>
SetHandler perl-script
PerlHandler MyApp
</Location>
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.
Sledge::Engine 0 Comments More | Login | Reply /