Tests for the modules with a keep_stash option
[catagits/Catalyst-View-Component-SubInclude.git] / t / lib / KeepStash / Controller / Root.pm
CommitLineData
f78902ea 1package KeepStash::Controller::Root;
2
3use strict;
4use warnings;
5use base 'Catalyst::Controller';
6
7__PACKAGE__->config->{namespace} = '';
8
9sub subrequest_keepstash_index : Path('subrequest_keepstash_index') :Args(0) {
10 my ($self, $c) = @_;
11 $c->stash->{'stash_value'} = 5;
12 $c->stash->{'deep'}->{'stash_value'} = 9;
13}
14
15sub visit_keepstash_index : Path('visit_keepstash_index') :Args(0) {
16 my ($self, $c) = @_;
17 $c->stash->{'stash_value'} = 5;
18 $c->stash->{'deep'}->{'stash_value'} = 9;
19}
20
21sub keepstash_call : Path('keepstash_call') :Args(0) {
22 my ($self, $c) = @_;
23 $c->stash->{'stash_value'}++;
24 $c->stash->{'deep'}->{'stash_value'}++;
25}
26
27sub end : ActionClass('RenderView') {}
28
291;