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