NAME
Nephia::DSLModifier - DSL Modifier for Nephia
SYNOPSIS
# fetch coderef of "res" DSL
my $coderef = origin 'res';
# add logic before "res" DSL
before 'res' => sub {
...
};
# add logic after "res" DSL
after 'res' => sub {
...
};
# modify "res" DSL
around 'res' => sub {
my $origin = pop;
my $reponse = $origin->( @_ );
...
return $response;
};
DESCRIPTION
It provides modifier commands that modifies Nephia DSL.
AUTHOR
ytnobody