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

James Stewart jystewart at gmail.com
Thu Mar 15 11:39:43 PST 2007


On Mar 15, 2007, at 3:15 AM, Dr. Ernie Prabhakar wrote:
> On Mar 14, 2007, at 7:42 AM, James Stewart wrote:
>> I think this is my first post here, after lurking for a while.
>
> Welcome!

Thanks :)

>> What I wanted to be able to do was to be able to accept my input  
>> as XML, JSON, microformats or a regular query string. It's quite  
>> straightforward to add parameter parsers for different types of  
>> input in Rails 1.2, but distinguishing the microformat input from  
>> a standard query string was a bit trickier.
>
> Um, sorry, I'm not quite following you. Do you mean *encoding* the  
> microformat data _into_ the query string? My understanding is that  
> the query string is urlencoded vs. HTML, so there's no ambiguity.  
> But I'm probably completely missing your point.

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.

>> I wrote up a few notes on my blog:
>>
>> http://jystewart.net/process/2007/02/intercepting-microformats-in- 
>> rails-input/
>>
>> I've also written up a longer piece on the process which should  
>> appear on infoq.com some time soon.
>
> Look forward to it -- please let us know when it is up.

It actually went up a couple of hours after I last posted:

http://www.infoq.com/articles/rails-rest-and-microformats

James.

-- 
James Stewart
Play: http://james.anthropiccollective.org
Work: http://jystewart.net/process/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://microformats.org/discuss/mail/microformats-rest/attachments/20070315/1510a1c5/attachment.html


More information about the microformats-rest mailing list