Nephia::Plugin::Basic - A Nephia plugin that provides basic DSL
This plugin provides req and param DSL for Nephia.
app { my $req = req; # returns Nephia::Request object ... };
Returns Nephia::Request object.
app { my $id = param('id'); # returns query-parameter that named 'id' my $params = param; # returns query-parameters as hashref };
Returns query-parameter.
app { redirect '/to/some_path'; };
Returns response object with Location header.
ytnobody <ytnobody@gmail.com>
Nephia::Plugin
To install Nephia, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nephia
CPAN shell
perl -MCPAN -e shell install Nephia
For more information on module installation, please visit the detailed CPAN module installation guide.