Changeset [c50568c8438a4053343ec1276ee508446a1d8250] by James Adam

July 29th, 2011 @ 08:30 PM

The beginnings of proper atom-feed provision from Vanilla.

Originally I had planned that all the implementation would be within the dynasnip, but a few issues gave me second thoughts about this, particularly with regards to configuration. I'm not 100% about how to separate out the configuration from the feed code nicely. Keeping the attributes in the same snip breaks upgrading via direct replacement of the system snips; keeping the attributes in a parallel snip has no precedent and isn't very obvious.

Generating an atom feed is also similar in many ways to rendering a collection of snips. I might investigate this further, with a view to having something along the lines of a "meta renderer" that handles rendering sets of snips similar to current renderers dealing with single snips. We'll see.

For the moment, the pristine app contains a "feed" snip which the user can customise at will, since it uses code within Vanilla itself.
https://github.com/lazyatom/vanilla-rb/commit/c50568c8438a4053343ec...

Committed by James Adam

  • A lib/vanilla/atom_feed.rb
  • A pristine_app/soups/base/feed.rb
  • A test/core/atom_feed_test.rb
  • A test/pristine_app/feed_test.rb
  • M lib/vanilla.rb
  • M lib/vanilla/app.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A sort of meta-wiki thing