NAME

Plack::Middleware::SubSpec::GetSpec - Get sub spec

VERSION

version 0.06

SYNOPSIS

# in your app.psgi
use Plack::Builder;

builder {
    enable "SubSpec::GetSpec";
};

DESCRIPTION

This middleware gets sub spec from %SPEC package variable, and puts it to $env->{'ss.spec'}. Will do nothing if $env->{'ss.request.module'} or $env->{'ss.request.sub'} is not set. Should be enabled after SubSpec::LoadModule middleware.

CONFIGURATIONS

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Steven Haryanto.

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