]> Dogcows Code - chaz/p5-Catalyst-Plugin-Sitemap/blob - t/lib/TestApp/Controller/Root.pm
return the $sitemap object instead than the XML directly
[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->xml );
12 }
13
14 sub alone :Local :Sitemap { }
15
16 sub with_priority :Local :Sitemap(0.75) { }
17
18 sub with_function :Local :Sitemap(*) { }
19
20 sub with_function_sitemap {
21 $_[2]->add( 'http://localhost/root/with_function' );
22 }
23
24 sub with_args :Local
25 :Sitemap( lastmod => 2010-09-27, changefreq => daily )
26 {}
27
28
29 1;
30
31
32
33
34
35
This page took 0.035941 seconds and 4 git commands to generate.