++ed by:

1 non-PAUSE user(s).

Satoshi Azuma
and 1 contributors

NAME

Nephia::Plugin::Basic - A Nephia plugin that provides basic DSL

DESCRIPTION

This plugin provides req and param DSL for Nephia.

DSL

req

    app {
        my $req = req; # returns Nephia::Request object
        ...
    };

Returns Nephia::Request object.

param

    app {
        my $id     = param('id'); # returns query-parameter that named 'id'
        my $params = param;       # returns query-parameters as hashref
    };

Returns query-parameter.

redirect

    app {
        redirect '/to/some_path';
    };

Returns response object with Location header.

AUTHOR

ytnobody <ytnobody@gmail.com>

SEE ALSO

Nephia::Plugin