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


Bryar documentation  | view source Contained in the Bryar distribution.

Index


NAME

Top

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

SYNOPSIS

Top

	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

Top

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

METHODS

Top

generate

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

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

LICENSE

Top

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

AUTHOR

Top

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


Bryar documentation  | view source Contained in the Bryar distribution.