...specifically https://granary-demo.appspot.com/ . code will be easy; UI will probably be the tricky part (if any).
thanks to @voxpelli and @kartikprabhu for the inspiration!
so this is pretty much all UI, and it's not at all clear to me how to integrate it with the existing UI. i tried a couple things and neither was very good. I'm open to ideas!
@snarfed UI as in exposing it through a form? How about having a hfeed->atom link on the main page; then expose a form that takes a URL, looks for h-feed and spits out an atom+xml document?
@kartikprabhu sure, a separate page would work, but it'd be a bit clunky. my current attempt integrates it with the existing form that's shown when you auth with one of the silos, which is better, but also a bit clunky.
...or maybe I'm overthinking it and shouldn't worry so much about the UI. :P
Clearly you need a microformats nascar button!
omg i know you're joking but i am totally using that
Was totally not joking!
So yeah I was just thinking, microformats button would open up a form like you have for the other endpoints, but it would just have one query parameter for URL, and then would show output in the iframe like you have now.
AS and mf2 assets, html, css. for #31
factor out activitystreams.Handler.write_response() so it's reusable
start on /url endpoint. for #31
extract microformats2.activities_to_html() out of activitystreams.py
add microformats2.html_to_activities(), use it in MF2/AS demo
make MF2/AS demo always show plain text
Merge branch 'as_mf2'
this is currently soft launched on https://granary-demo.appspot.com/ . it's not good enough - specifically, it only looks for mf2 (json/html) items at the top level, which doesn't really work - but it's a start.
It works well for individual permalink pages, seems like it will be quite nice with h-feed support.
In case it's useful, in Woodwind I look for an h-feed anywhere on the page and parse that, or fall back to the top level items https://github.com/kylewm/mf2util/blob/master/mf2util/interpret.py#L198
ah, good call, thanks. (and yet another reminder i should really be using mf2util already. :P)
update mf2 html input to handle h-feeds
for #31. thanks @kylewm!