The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MVC::Neaf::Route::Null - route stub for Not Even A Framework

DESCRIPTION

This is a utility class. Nothing to see here unless one intends to work on MVC::Neaf itself.

A Null route will be substituted in MVC::Neaf::Request's methods until real routing has been performed.

Normally this shouldn't even be instantiated as MVC::Neaf::Route::PreRoute will take over before any user code gets a chance to be executed by Neaf.

But for the sake of completeness, it is here.

METHODS

new

post_setup

Do nothing.

path

Returns path argument given to new(), defaults to '/'.

method

Returns method argument given to new(), defaults to 'GET'.

code

Returns function that dies with 404.

strict

returns "strict" parameter.

code

Returns a "die 404" function by default.

hooks

Returns an empty hash by default.

default

Returns anempty hash by default.

get_form

get_view

These two die, because there are no forms/views available until the request routing has been started.

parent

Returns nothing, as this route isn't attached to any application.

LICENSE AND COPYRIGHT

This module is part of MVC::Neaf suite.

Copyright 2016-2018 Konstantin S. Uvarin khedin@cpan.org.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.