Nephia - A microcore architecture WAF
use Nephia plugins => [...];
app {
my $req = req; ### Request object
my $id = param('id'); ### query-param that named "id"
my $body = sprintf('ID is %s', $id);
[200, [], $body];
};
Nephia is microcore architecture WAF.
Let's try to create your project.
nephia-setup YourApp::Web
Then, you may plackup on your project directory.
Please see Nephia::Setup::Plugin::Basic for detail.
Use "--plugins Minimal" option to minimalistic setup.
nephia-setup --plugins Minimal YourApp::Mini
Please see Nephia::Setup::Plugin::Minimal for detail.
Please see Nephia::Core.
app { ... };
Specify code-block of your webapp.
Please see Nephia::Plugin::Basic.
Please see Nephia::Plugin::Dispatch.
In app.psgi, run() method returns your webapp as coderef.
use YourApp::Web;
YourApp::Web->run;
Returns external logic as coderef.
my $external_logic = Nephia->call('C::Root#index');
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ytnobody [email protected]