#microformats 2023-07-23

2023-07-23 UTC
eitilt, gRegorLove_, gRegorLove__, Guest2781, Guest7935, guest1 and cobypear joined the channel
#
cobypear
Hi. Probably a silly question, but is there a library out there that converts microformat JSON back into HTML? Or is that usually a bespoke thing that most people handle on their own?
#
c​apjamesg
Hello CobyPear! What is your use case?
sivoais, gRegorLove_, [jacky] and ok joined the channel
#
[KevinMarks]
That's more of a template than a library. I did a few in unmung (rip) eg this one (for jinja2) https://github.com/kevinmarks/unmung/blob/master/indiecard.html
#
c​apjamesg
Have you thought about setting unmung up again [KevinMarks]?
#
c​apjamesg
That’s a clever way of testing microformats. Almost like IndieWebify.
#
[KevinMarks]
I should have another go, it was the combination of dealing with Google and GoDaddy over the domain that drained my will.
#
c​apjamesg
Are you open to using another domain?
#
Loqi
I agree
#
[KevinMarks]
Sure, it's also the appengine migration that is annoying. Most of the code is in the templates really, but it does use appengine features for caching. What's a good way to host a python app these days?
#
[KevinMarks]
It would be a pain as a lambda based app because it's mainly blocked on fetching sites
[manton], [snarfed] and btrem joined the channel
gRegorLove__ and cobypear joined the channel
#
cobypear
Hi IWDiscord. Right now I'm saving webmention replies as HTML but I want to save the parsed JSON instead so I can have a bit better control of the output when displaying the webmentions. Thanks KevinMarks that is helpful!
#
cobypear
Oh I meant capjamesg not IWDiscord :)
eitilt joined the channel
#
[KevinMarks]
The challenge is how general to be. Are you saving source html, or mf2 parsed into json?
#
[KevinMarks]
The mf2 can come out a lot of different ways depending on markup choices so you often need to go through it looking for the bits you know how to render
#
gRegor
Added that appspot link on https://indieweb.org/unmung
eitilt, [campegg] and cobypear joined the channel
#
cobypear
I am saving plain HTML now but I want to save the mf2 parsed json to get cleaner output on my frontend. I figured it would need to be custom. That template you [KevinMarks] shared helps me get a good starting point though.