NAME

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

VERSION

This describes version 0.40 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.

Note that since this replaces methods without calling the parent methods, if you use this plugin along with other plugins which override the methods below, you need to be careful what order you place them.

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.

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-2005 by Kathryn Andersen

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