The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Pinto::Server::ActionResponder - Base class for responding to Action requests

VERSION

version 0.036

ATTRIBUTES

root => $directory

The root directory of your Pinto repository. This attribute is required.

METHODS

respond( action => $action_name, params => \%params );

Given an action name and a hash reference request parameters, performs the action and returns a PSGI-compatible response. This is an abstract method that you must implement in a subclass.

run_pinto( $action_name, $output_handle, %pinto_args )

Given an Action name and a hash of arguments for Pinto, runs the Action and writes the output to the output handle. This method takes care of adding the prologue and epilogue to the output handle. Any output produced by the Action will be written to the output handle. Returns a true value if the action was entirely successful.

AUTHOR

Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Imaginative Software Systems.

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