News for hackers. Stuff that matters.
Re:Using HTML as the Media Type for your API by DougWebb on Wednesday July 11, 2012 @11:42AM (#4229705)
Just how much would this be different if the data was json?

   $("#listItems li", apiResponse).each(function() {
      $("#mytable").append("<tr><td>$(this).html()</td></tr>");
   });
Json or html, you're going to have to navigate to the list in the api response and loop over the list items to generate the markup you want.
Re:Using HTML as the Media Type for your API by untog on Wednesday July 11, 2012 @01:31PM (#4230237)
Well, for a start, you've assumed the presence of jQuery and the DOM. DOM parsing can be a pain to do server-side.
Re:Using HTML as the Media Type for your API by DougWebb on Wednesday July 11, 2012 @03:11PM (#4230872)
The article points points out that DOM traversal is annoying, but jQuery-like apis are available for most languages.