Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perigrin/obry
A Simple API for Web Applications in Moose
https://github.com/perigrin/obry
Last synced: 22 days ago
JSON representation
A Simple API for Web Applications in Moose
- Host: GitHub
- URL: https://github.com/perigrin/obry
- Owner: perigrin
- Created: 2009-01-11T05:53:22.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2011-04-08T20:00:54.000Z (almost 14 years ago)
- Last Synced: 2024-05-01T22:51:38.032Z (8 months ago)
- Language: Perl
- Size: 113 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
NAME
Obry - A Simple API for Web Applications in MooseVERSION
This document describes Obry version 0.0.1SYNOPSIS
{
package MyEventHandler;
use Obry::Event;symbols(qw(event_foo event_bar));
sub event_foo {
my ( $self, $ctxt ) = @_;
::pass('foo');
$self->output('FOO!');
return 'OK';
}sub event_bar {
my ( $self, $ctxt ) = @_;
$self->output('Bar!');
return 'OK';
}
}
{
package MyOutputHandler;
use Obry::Event;symbols(qw(print_output));
sub print_output {
my ( $self, $ctxt ) = @_;
print $self->output;
return 'OK';
}
}
{
package MyApp;
use Obry;
my $app = Obry->new();
$app->pipeline( [qw(MyEventHandler MyOutputHandler)] );
$app->run();
}DESCRIPTION
Obry is an attempt to re-think the SAWA Web Framework. Obry is in no way
an attempt to replace SAWA, but is instead an experiemental
re-implementation of the idea with modern tools.INTERFACE
CONFIGURATION AND ENVIRONMENT
Obry requires no configuration files or environment variables.DEPENDENCIES
Moose, MooseX::Params, MooseX::AttributeHelpersINCOMPATIBILITIES
None reported.BUGS AND LIMITATIONS
No bugs have been reported.Please report any bugs or feature requests to "[email protected]", or
through the web interface at .AUTHOR
Chris Prather ""LICENCE AND COPYRIGHT
Copyright (c) 2007, Chris Prather "". All rights
reserved.This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself. See perlartistic.DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE
TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.