-
-
25 Oct 2009 16:51:03 UTC
- Distribution: Bryar
- Module version: 1.2
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (9)
- Testers (232 / 296 / 2)
- Kwalitee
Bus factor: 0- 54.78% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (31.26KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Bryar::Frontend::Base - Base class for frontend classes
SYNOPSIS
use base 'Bryar::Frontend::Base'; sub obtain_url {...} sub obtain_path_info {...} sub obtain_args {...} sub send_data {...} sub send_header {...} sub get_header {...}
DESCRIPTION
This abstracts the work of front-ending Bryar, to make real front-end classes tidier.
METHODS
You provide these.
obtain_url
Returns the full URL for this page.
obtain_path_info
Returns the path info from the server: the part of the URL after bryar.cgi or whatever.
obtain_params
Returns a hash of CGI parameters.
send_data
Write stuff to the browser. This will only be called once.
send_header
Write stuff to the browser, first.
get_header
Read a HTTP header.
output
$self->output
Output the entire blog data to the browser
report_error
$self->report_error($title, $message)
Used when something went horribly wrong inside Bryar. Spits out the error in as friendly a way as possible to the browser, HTML-escaped and enclosed by a <p> tag, and to STDERR.
LICENSE
This module is free software, and may be distributed under the same terms as Perl itself.
AUTHOR
Copyright (C) 2003, Simon Cozens
simon@kasei.com
some parts Copyright 2007 David Cantrell
david@cantrell.org.uk
SEE ALSO
Module Install Instructions
To install Bryar, copy and paste the appropriate command in to your terminal.
cpanm Bryar
perl -MCPAN -e shell install Bryar
For more information on module installation, please visit the detailed CPAN module installation guide.