[uf-rest] New microformat/REST Ruby Parser: mofo

David Heinemeier Hansson david at loudthinking.com
Thu Mar 15 12:37:43 PST 2007

>> WHat I wanted to be able to do was post HTML (marked up with  
>> microformats)
>> to my endpoint just as I would post XML, and to have mofo then  
>> parse that
>> HTML and pull out the relevant content.
> The problem with this is that unless you code your rails models to
> match specific microformats, the chances of the two data formats
> lining up are slim.  You'll need to write a custom param parser that
> wires attributes from whatever microformat you're receiving with your
> model's attributes.

You could do that in a filter/preprocessor, though. Such that the  
internals of your models and controllers would be indifferent to how  
the data came in.
David Heinemeier Hansson
http://www.37signals.com    -- Basecamp, Campfire, Backpack, Getting  
http://www.rubyonrails.com  -- Web-application framework
http://www.loudthinking.com -- Broadcasting Brain

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1940 bytes
Desc: not available
Url : http://microformats.org/discuss/mail/microformats-rest/attachments/20070315/c952d693/smime.bin

More information about the microformats-rest mailing list