Closed bhagany closed 7 years ago
Deployed perun/atom-upgrades. View on Runnable. From Runnable
sigh. I thought this would merge cleanly. I'll fix when I'm able.
While merging from master, I changed my mind a bit about paginate
. Rather than having a filename-fn
, I think it's more consistent with other tasks to have a slug-fn
, plus out-ext
for determining filenames.
My primary motivation was to get paginated Atom feeds, so that more than 10 items can be retrieved by clients, but also feed pages don't get too large. Along the way, I also addressed some of the FIXME's in atom.clj, upgraded the error reporting, and made good use of
content-pre-wrap
.Enabling pagination for
atom-feed
entailed upgradingpaginate
as well - it now adds more useful metadata to the generated pages. I've updated the spec document accordingly.There is one backwards incompatible change for
paginate
. Where it previously took aprefix
option, it now takes afilename-fn
. This can be made to do the same thingprefix
did, but also allows you to come up with page naming schemes that don't fall within the narrow confines of page-1, page-2, etc.