Dancer::Plugin::SiteMap - Automated site map for the Dancer web framework.
Version 0.06
use Dancer; use Dancer::Plugin::SiteMap;
Yup, its that simple. Optionally you can omit routes:
sitemap_ignore ('ignore/this/route', 'orthese/.*');
Plugin module for the Dancer web framwork that automagically adds sitemap routes to the webapp. Currently adds /sitemap and /sitemap.xml where the former is a basic HTML list and the latter is an XML document of URLS.
Currently it only adds staticly defined routes for the GET method.
Using the module is literally that simple... 'use' it and your app will have a site map.
The HTML site map list can be styled throught the CSS class 'sitemap'
Added additional functionality in 0.06 as follows:
Firstly, fixed the route selector so the sitemap doesn't show the "or not" operator ('?'), any route defined with a ':variable' in the path or a pure regexp as thats just dirty.
More importantly, I came across the requirement to not have a few admin pages listed in the sitemap, so I've added the ability to tell the plugin to ignore certain routes via the sitemap_ignore keyword.
James Ronan, <james at ronanweb.co.uk>
<james at ronanweb.co.uk>
Please report any bugs or feature requests to bug-dancer-plugin-sitemap at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer-Plugin-SiteMap. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-dancer-plugin-sitemap at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dancer::Plugin::SiteMap
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-Plugin-SiteMap
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dancer-Plugin-SiteMap
CPAN Ratings
http://cpanratings.perl.org/d/Dancer-Plugin-SiteMap
Search CPAN
http://search.cpan.org/dist/Dancer-Plugin-SiteMap/
Copyright 2010 James Ronan.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Dancer::Plugin::SiteMap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::SiteMap
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::SiteMap
For more information on module installation, please visit the detailed CPAN module installation guide.