NAME
EntityModel::Web - website support for EntityModel
VERSION
version 0.004
SYNOPSIS
DESCRIPTION
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: [
host: something.com
page: [
name: 'Index'
path: ''
pathtype: string
title: 'Index page'
]
]
METHODS
register
Registers this module as a plugin with the EntityModel main classes.
page_from_uri
SEE ALSO
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/
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
AUTHOR
Tom Molesworth <cpan@entitymodel.com>
LICENSE
Copyright Tom Molesworth 2009-2011. Licensed under the same terms as Perl itself.