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

Ryan King ryan at technorati.com
Mon Mar 19 21:36:41 PST 2007

On Mar 15, 2007, at 1:20 PM, Rick Olson wrote:

>> 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.

Of course, if you were to make, for example, your Person model use  
the same field names as hCard/vCard you could skip the step of  
figuring out how to represent a person (again).

Ryan King
ryan at technorati.com

More information about the microformats-rest mailing list