zimki | all bloggers | admin login | recent entries for Tom Insam
 
zimki feed renderer

Tom Insam on Tue Sep 19 2006 18:15:00 GMT+0100 (GMT)

In 'new exciting stuff' news, Zimki has a new way of rendering RSS feeds. The old system was odd to use, only really generated RSS 1.0 feeds, and could only generate them from the results of searches on objects - I wanted something more abstracted, that could be used to generate RSS, RSS 2.0 and atom feeds without needing any changes to your code, as well as being able to generate feeds from any list of JavaScript objects.

Enter zimki.render.feed - the new renderer. This one is implemented entirely in JavaScript, using E4X to generate the feed and add items to it.

Unlike the old RSS generator, this one isn't automatically available - you need to pull in the generator library, using zimki.library.require('library', 'feed.js'). Once done, zimki.render.feed( .. ) will produce lovely shiny RSS feeds at will. We'll probably keep this behaviour in the next release - you'll need to explicitly ask for RSS feed support if you want to use it.

Anyway, read the docs, and try it out.

leave a comment

name
email
comment