EntityModel::Web - website support for EntityModel
version 0.004
Support for EntityModel-backed websites. Currently an early preview release, so if you're looking for a good, production-quality web framework try something from the <L/SEE ALSO> list.
Accepts a definition for site + page hierarchy, and applies handlers as required to convert incoming requests into outgoing responses.
The following classes provide most of the key functionality:
EntityModel::Web::Request - abstraction for an incoming HTTP/HTTPS request, may be subclassed by the appropriate server layer.
EntityModel::Web::Response - abstraction for outgoing HTTP/HTTPS response
EntityModel::Web::Site - website definition
EntityModel::Web::Page - page definition, specfiying the handlers, templates, data and URL(s) for a specific page.
EntityModel::Web::Context - active request handler, includes everything appropriate for a single HTTP request.
EntityModel::Web::Authorization - support for authorization on a single request.
EntityModel::Web::Authentication - support for request authentication.
EntityModel::Web::Session - store and retrieve data between requests for a user session
Definitions are stored under the web key as a list of sites:
web
web: [ host: something.com page: [ name: 'Index' path: '' pathtype: string title: 'Index page' ] ]
Registers this module as a plugin with the EntityModel main classes.
There are plenty of other Perl web frameworks out there, here's a partial list:
Catalyst - great for large projects, see also the website at http://www.catalystframework.org/
Mojolicious - see http://www.mojolicious.org/
Dancer - see http://www.perldancer.org/
WebGUI - see http://www.webgui.org/
Labyrinth - website available here http://labyrinth.missbarbell.co.uk/ although CPAN/git repo were more up to date as of June 2011
Titanium - apparently the successor to CGI::Application
Web::Simple
Jifty
Continuity
SweetPea
MayPole
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2009-2011. Licensed under the same terms as Perl itself.
To install EntityModel::Web, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EntityModel::Web
CPAN shell
perl -MCPAN -e shell install EntityModel::Web
For more information on module installation, please visit the detailed CPAN module installation guide.