NAME

Bryar::Renderer::SiteMap - Generate an XML sitemap using WWW::Google::SiteMap

SYNOPSIS

        my $blog = Bryar->new(
                renderer => 'Bryar::Renderer::SiteMap',
                sitemap_static_files => [ qw(blogroll.opml foaf.rdf) ],
                sitemap_static_basedir => $basedir,
        );

        my @documents = $blog->config->source->all_documents($blog->config);
        print $blog->config->renderer->generate('object', $blog, @documents);

DESCRIPTION

This Bryar renderer generates a Google sitemap for the dynamic content of the blog and optionally for a specified list of static files.

METHODS

generate

    $self->generate(undef, $bryar, @documents)

    Returns a Google sitemap from the documents provided by the Bryar object.

LICENSE

This module is free software, and may be distributed under the same terms as Perl itself.

AUTHOR

Copyright (C) 2008, Marco d'Itri <md@Linux.IT>