]> Dogcows Code - chaz/p5-Catalyst-Plugin-Sitemap/blobdiff - t/lib/TestApp/Controller/Root.pm
Drop dependency on Search::Sitemap in favour of WWW::Sitemap::XML
[chaz/p5-Catalyst-Plugin-Sitemap] / t / lib / TestApp / Controller / Root.pm
index 0eb3c6e546eb7399551f5f3110f02b61fae0547a..4852ee18ab82b511b82dc028075442a8e3fee0b6 100644 (file)
@@ -8,7 +8,7 @@ use parent 'Catalyst::Controller';
 sub sitemap : Path('/sitemap') {
     my ( $self, $c ) = @_;
 
-    $c->res->body( $c->sitemap->xml );
+    $c->res->body( $c->sitemap->as_xml->sprint );
 }
 
 sub alone :Local :Sitemap { }
This page took 0.016387 seconds and 4 git commands to generate.