DSL Modifier feature for Nephia
Perl
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/PrimalNephia
t
.gitignore
.travis.yml
Build.PL
Changes
LICENSE
META.json
README.md
cpanfile

README.md

NAME

PrimalNephia::DSLModifier - DSL Modifier feature for PrimalNephia

SYNOPSIS

use PrimalNephia::DSLModifier;


# add logic before "res" DSL
before 'res' => sub {
    ... ### do stuff 
};


# add logic after "res" DSL
after 'res' => sub {
    ... ### do stuff
};


# modify "res" DSL
around 'res' => sub {
    my $origin = pop;
    my $reponse = $origin->( @_ );
    ... ### do stuff
    return $response;
};

DESCRIPTION

PrimalNephia::DSLModifier provides modifier commands that modifies PrimalNephia DSL.

FUNCTIONS

  • before $dsl => $coderef
  • after $dsl => $coderef
  • around $dsl => $coderef

LICENSE

Copyright (C) ytnobody.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

ytnobody ytnobody@gmail.com