NAME
Punk::Feed - Atom and RSS feeds for Punk
SYNOPSIS
package MyApp;
use Punk;
use Punk::Plugin::Feed; # for the `feed` keyword
host 'https://example.com';
plugin 'Feed' => { title => 'Example', author => 'A Name' };
feed sub {
map +{
loc => "/posts/$_->{id}",
title => $_->{title},
updated => $_->{updated},
summary => $_->{excerpt},
}, MyApp->model('Post')->recent;
};
Which serves /feed.xml and /feed.rss.
SEE ALSO
Punk::Plugin::Feed for the plugin, its options and the feed keyword.
Punk::Plugin::Sitemap for the other file a site owes a crawler, which this is modelled on.
Punk.
AUTHOR
LNATION <email@lnation.org>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2026 by LNATION <email@lnation.org>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)