]> Dogcows Code - chaz/p5-Catalyst-Plugin-Sitemap/blob - t/lib/TestApp/Controller/Root.pm
01a131d8dc292e3722aa57727cd32dfed2babcfc
[chaz/p5-Catalyst-Plugin-Sitemap] / t / lib / TestApp / Controller / Root.pm
1 package TestApp::Controller::Root;
2
3 use strict;
4 use warnings;
5
6 use parent 'Catalyst::Controller';
7
8 sub sitemap : Path('/sitemap') {
9 my ( $self, $c ) = @_;
10
11 $c->res->body( $c->sitemap );
12 }
13
14 sub alone :Path('/alone') :Sitemap { }
15
16 sub with_priority :Path('/with_priority') :Sitemap(0.75) { }
17
18 sub with_function :Path('/with_function') :Sitemap(*) { }
19
20 sub with_function_sitemap {
21 $_[2]->add( 'http://localhost/with_function' );
22 }
23
24 sub with_args :Path('/with_args')
25 :Sitemap( lastmod => 2010-09-27, changefreq => daily )
26 {}
27
28
29 1;
30
31
32
33
34
35
This page took 0.03785 seconds and 3 git commands to generate.