Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ikebe (2247)

ikebe
  (email not shown publicly)
http://blog.shebang.jp/

Journal of ikebe (2247)

Wednesday November 01, 2006
07:07 AM

Sledge::Engine

[ #31469 ]

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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.