NAME

Posy::Plugin::CgiCarp - Posy plugin to aid debugging by using CGI::Carp

VERSION

This describes version 0.10 of Posy::Plugin::CgiCarp.

SYNOPSIS

    @plugins = qw(Posy::Core
	...
	Posy::Plugin::CgiCarp));

DESCRIPTION

This plugin is for developers to aid debugging by making all fatal errors and warning messages be displayed in the browser by using the CGI::Carp module.

Activation

This plugin needs to be added to the plugins list.

Flow Action Methods

Methods implementing actions.

stop_if_not_found

If there was an error parsing the path ($self->{path}->{error} is true) then flag the actions to stop.

Also sends a 404 error if we are in dynamic mode; this assumes that if it can't parse the path, it can't find the file.

This is done as a separate action method so that it makes it easier to change this behaviour.

render_page

$self->render_page(\%flow_state);

Put the page together by pasting together its parts in the flow_state hash and print it (either to a file, or to STDOUT). If printing to a file, don't print content_type

Helper Methods

Methods which can be called from within other methods.

debug

Print a debug message (for debugging) Checks $self->{'debug_level'}

REQUIRES

CGI::Carp
Posy::Core
Posy

Test::More

SEE ALSO

perl(1). Posy

BUGS

Please report any bugs or feature requests to the author.

AUTHOR

Kathryn Andersen (RUBYKAT)
perlkat AT katspace dot com
http://www.katspace.com

COPYRIGHT AND LICENCE

Copyright (c) 2004 by Kathryn Andersen

Based in part on the 'css' blosxom plugin by Eric Davis <edavis <at> foobargeek <dot> com> http://www.foobargeek.com And in part on the 'flavourmenu' blosxom plugin by Tim Lambert (lambert <at> cse <dot> unsw <dot> edu <dot> au)

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.