]>
Dogcows Code - chaz/p5-Catalyst-Plugin-Sitemap/blob - TestApp/Controller/Root.pm
1 package TestApp
::Controller
::Root
;
6 use parent
'Catalyst::Controller';
8 sub sitemap
: Path
('/sitemap') {
10 $c->res->body( $c->sitemap_as_xml );
13 sub dynamic
:Path
('/dynamic') {
14 my ( $self, $c ) = @_;
16 $c->sitemap->add( "http://localhost/sumfin" ); #''.$c->uri_for( '/sumfin' ) );
18 $c->res->body( 'dynamic it is' );
21 sub alone
:Local
:Sitemap
{ }
23 sub with_priority
:Local
:Sitemap
(0.75) { }
25 sub with_function
:Local
:Sitemap
(*) { }
27 sub with_function_sitemap
{
28 $_[2]->add( 'http://localhost/root/with_function' );
32 :Sitemap
( lastmod
=> 2010-09-27, changefreq
=> daily
)
This page took 0.033155 seconds and 4 git commands to generate.