10 Jul 2016 09:50:11 UTC
- Distribution: App-Templer
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (0)
- Testers (447 / 13 / 2)
- KwaliteeBus factor: 1
- 78.03% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (173.51KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSKX Steve Kemp
Templer::Plugin::SiteMap - Generate a SiteMap automatically.
This plugin must be enabled by adding two settings in the global configuration file; the name of the file to generate and the prefix of the output URLs.
The following is a good example:
sitemap_file = /sitemap.xml sitemap_base = http://example.com/
This plugin will generate a simple
sitemap.xmlfile including references to all pages which
This module is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or
b) the Perl "Artistic License".
Steve Kemp <firstname.lastname@example.org>
Copyright (C) 2016 Steve Kemp <email@example.com>.
This library is free software. You can modify and or distribute it under the same terms as Perl itself.
Constructor. No arguments are required/supported.
Initialisation function, which merely saves a reference to the Templer::Site object.
This method is invoked when site-generation is complete, and this is where we generate the sitemap, if our two required configuration values are present in the configuration file.
If configuration-variables are not setup then we do nothing.