mk_route ( 'route1'=> 'Class::Name', 'route2'=> sub { return new My::Class() })
Make route table for object
use WebDAO;
mk_route(
user=>'MyClass::User',
test=>sub { return MyClass->new( param1=>1 ) }
);
NAME
WebDAO - platform for easy creation of high-performance and scalable web applications
SYNOPSIS
use WebDAO;
DESCRIPTION
There are many environments in which the web applications work:
---------------------------------------------
| PSGI |
| FastCGI |
| ------------------------ |
| nginx | | |
| | Your code | isapi |
| | | |
| ---------------------- |
| Shell Test::More IIS |
| lighttpd |
---------------------------------------------
WebDAO designed to save developers from the details of the application environment, reduce costs with a change of environment, and to simplify debugging and testing applications. An important goal is to simplify and increase the speed of web development.
SEE ALSO
http://webdao.sourceforge.net
AUTHOR
Zahatski Aliaksandr, <zag@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2002-2015 by Zahatski Aliaksandr
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.