NAME
Yeb - Yep! Yeb is for web! Yep Yep!
VERSION
version 0.002
SYNOPSIS
package MyApp::Web;
use Yeb;
BEGIN {
plugin 'Session';
plugin 'JSON';
}
r "/" => sub {
session->{test} = pa('test');
text "root";
};
r "/blub" => sub {
st->{blub} = 1;
text "root";
};
r "/test/..." => sub {
chain 'Test';
};
1;
package MyApp::Web::Test;
use MyApp::Web;
r "/json" => sub {
json {
test => session->{test},
blub => st->{blub} ? 1 : 0,
}
};
r "/" => sub {
text " test = ".session->{test}." and blub is ".st->{blub} ? 1 : 0;
};
1;
Can then be started like (see Web::Simple):
plackup -MMyApp::Web -e'MyApp::Web->run_if_script'
DESCRIPTION
Just.... had to be done...
SUPPORT
IRC
Join #web-simple on irc.perl.org. Highlight Getty for fast reaction :).
Repository
http://github.com/Getty/p5-yeb
Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-yeb/issues
AUTHOR
Torsten Raudssus <torsten@raudss.us>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.