#microformats 2025-05-10

2025-05-10 UTC
duanin3, [KevinMarks] and spenc joined the channel
#
spenc
hi! I'm messing around with webcomponents for the first time
#
spenc
do you know if they work with microformats? as in, if my h-entry is part of a <custom-element> will it be visible to the indieweb?
#
spenc
or would some other non-webcomponent way of templating the Light DOM be better (handlebar.js / dna-engine / some other suggestion?)
barnaby joined the channel
#
Zegnat
spenc: most microformats parsers require a DOM tree as input, so they will only see classes that are part of that, but most of them will not run JS. So the parsers will probably not see classes that are being inserted by the custom-element
[tw2113] and [mail918] joined the channel
#
[mail918]
gotcha, makes sense
#
[mail918]
Do you have a recommended way to do some simple HTML templating ? I had some liquid templates I was happy with but I'm trying to move away from having a build process
#
[mail918]
Hmm, might not be possibly though if it has to be done before any JS.
barnaby joined the channel
#
Zegnat
There are so many templating systems, hard to say anything. Basically all of them can generate HTML with classes, so all of them would be able to add microformats.
#
Zegnat
Theoretically microformats parsers can run after JS, e.g. as part of browser addons, but most parsers run on some sort of server and parse HTML retrieved over HTTP without involving a JS engine.
#
Zegnat
I think https://indieweb.org/template links to a bunch of templating engines if you are looking for one, else maybe join the #indieweb-dev channel for that discussion. It will quickly fare away from microformats themselves and probably not best answered in this channel.
#
capjamesg
[tantek] I can't create a page on the microformats wiki 😦 I was hoping to do a write-up of rel=edit.
barnaby joined the channel
#
[tantek]
capjamesg, wait do you have an account?
#
capjamesg
I'm logged in.
#
capjamesg
I see "There is currently no text in this page. You can search for this page title in other pages, or search the related logs, but you do not have permission to create this page."
#
[tantek]
That might be because you haven't made enough edits yet 😆
#
[tantek]
Long long time ago we added various layers of wiki editing / page creating permissions that people got over time and activities
[morganm] joined the channel
#
tantek
edited /existing-rel-values (+6) "/* HTML5 link type extensions */ rel-edit is in use with visible edit hyperlinks (e.g. to GitHub repos)"
(view diff)
#
tantek
created /rel-edit (+125) "stub with dfn"
(view diff)
#
[tantek]
capjamesg, page created, go for it: https://microformats.org/wiki/rel-edit
#
[KevinMarks]
I think we've got prior art for this, I'm sure you have edited some of my transcript posts Tantek
#
[tantek]
there's plenty of prior art of the pages linking to their github repos
#
jamesgallagher
edited /rel-edit (+2991) "add definition, publishers, consumers, background, prior art"
(view diff)
#
[tantek]
capjamesg, unfortunately we don't have a "best practice" or a template / boilerplate for rel- value specs. Take a look at the specs linked from the home page, and use your judgment for which sections to copy/paste and see if you can improve upon past specs: https://microformats.org/wiki/Main_Page#rel_microformats
#
[tantek]
ooh I'll take a look at what you drafted
#
capjamesg
Please do!
#
capjamesg
I looked at a few wiki pages to figure out what sections to add.
#
capjamesg
Please edit / prune / add liberally!
#
[tantek]
excellent start
#
capjamesg
I did a Google search for "rel=edit" and there doesn't seem to be much prior discussion around this.
#
[tantek]
go for it, I have a few other things to take care of, and it would benefit from your fresh perspective (looking at those prior rel- specs and picking and choosing the sections that make sense to you)
#
[tantek]
it's like the discussion is too old for Google to find, and buried in mailing lists in various places
#
jamesgallagher
edited /rel-edit (+750) "add rel=alternate type=application/x-wiki"
(view diff)
#
capjamesg
Oooh, thank you!
#
jamesgallagher
edited /rel-edit (+607) "add RFC 5023 - The Atom Publishing Protocol reference"
(view diff)
#
jamesgallagher
edited /rel-edit (+1) "/* = rel=edit in Atom */"
(view diff)
#
jamesgallagher
edited /rel-edit (+505) "add see also section"
(view diff)
#
jamesgallagher
edited /rel-edit (+431) "add rel=EditURI prior art"
(view diff)
[social], srijan_, strugee_, snoreboar and capjamesg joined the channel