[Seaside] [ANN] Preview RSRSS

Philippe Marschall philippe.marschall at gmail.com
Tue Sep 26 17:09:58 UTC 2006


Hi

Inspired by a talk Lukas gave at ESUG I created something called RSRSS
(Really Simple RSS) [1]. It allows you to create RSS 2.0 feeds with
the Seaside canvas API. Emphasis is on simple. If you need powerful or
flexible, there's Atom [2]

example:
renderFirstItemOn: rss
	rss item: [
		rss title: 'Star City'.
		rss link: 'http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp'.
		rss description: 'How do Americans get ready to work with Russians
aboard the International Space Station? They take a crash course in
culture, language and protocol at Russia''s Star City.'.
		rss publicationDate: 'Tue, 03 Jun 2003 09:39:21 GMT'.
		rss guid: 'http://liftoff.msfc.nasa.gov/2003/06/03.html#item573' ]

There is a class called RRDemo that gives you a more complete example.

What does preview mean? There's no real documentation about the
elements so you need to be familiar with the RSS spec. I plan to copy
and paste the explanations from the spec into the methods.
Also you have to pass correctly formatted strings to make sure it
validates. This is mostly an issue for email addresses and timestamps.
Debugging does not work like in Seaside applications. Sorry about that.
call:/answer: doesn't work (and doesn't really sense). Subcomponents
should work (although you probably won't need them).

It implements the full 2.0 specification (unless I've forgotten
something) but no modules (and also not Dublin Core).

The demo validates against W3C Feed Validation Service and the
Validome RSS and Atom validator. I didn't check against Feed Validator
[5] which is probably the most strict.

This mail is basically to find out if there is any interest in this
kind of stuff.

Philippe

[1] http://www.squeaksource.com/rsrss.html
[2] http://www.squeaksource.com/Atom.html
[3] http://validator.w3.org/feed/
[4] http://www.validome.org/rss-atom/
[5] http://feedvalidator.org/


More information about the Seaside mailing list