You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Nathan Vander Wilt <na...@calftrail.com> on 2012/11/08 20:19:43 UTC

Re: RSS/Atom feed show/list function

Late to the party but for the records I've got one that passes http://validator.w3.org/appc/ validation as used on http://n.exts.ch:
https://github.com/natevw/Glob/blob/master/lists/posts.js#L67
https://github.com/natevw/Glob/blob/master/lib/atom.js

Atom generation was derived from this file in jchris's Sofa blog example:
https://github.com/jchris/sofa/blob/master/vendor/couchapp/lib/atom.js

It uses e4x so it looks a little crazy but works fine in CouchDB's SpiderMonkey and should avoid "handwritten" XML pitfalls.

hth,
-natevw

On Sep 20, 2012, at 7:51 PM, Wordit wrote:

> Does anyone happen to have a show/list function that outputs an RSS/Atom feed?
> 
> I couldn't find any in the archives so far. Just hoping somebody
> already has a code snippet lying around.
> 
> It's to help some people out hosting a literary blogfest. Thought I
> could give them a form connected to a couch database for bloggers to
> enter their post URLs. Then publish a feed to aggregate the posts from
> all the various personal blogs.
> 
> Thanks,
> 
> Marcus