#dev 2025-05-10

2025-05-10 UTC
grufwub, CRISPR, duanin3, leonardo_, sp1ff, [KevinMarks], spenc, barnaby, PsyLok, sandra, sp1ff`, srazkvt, [tw2113], claudinec, ttybitnik and [mail918] joined the channel
#
doesnm
maybe i should add rel=edit to my friend so he can just jump to git instance and edit some page
#
capjamesg
Yeah! I use that workflow every day for my site.
#
doesnm
i don't know ruby but jekyll plugin for this would be best
#
capjamesg
The one thing I haven't figured out yet is how best to allow for editing of any template used to generate a page.
#
capjamesg
It would be cool if, for example, you could click the edit bookmarklet and it would ask if you want to edit the page source, or the nav bar, or the base template, etc.
#
capjamesg
This is where rel=edit would be more appropriate for sure.
#
capjamesg
Then you can specify whatever the page template is.
#
doesnm
rel=edit are supported by universal edit button
#
capjamesg
doesnm Do you have a citation?
#
doesnm
capjamesg: huh?
#
capjamesg
Their last archived wiki page didn't mention support for it. Good to know there is!
barnaby joined the channel
#
[mail918]
I'm working on a site that has a lot of repetitive markup, and am trying to avoid needing a build process
CRISPR joined the channel
#
[mail918]
I've tried webcomponents, but they require JS to run, and from what I've heard in #microformats the shadow DOM hides the microformat tags anyways
#
capjamesg
The shadow DOM cannot be rendered unless the tool parsing the web page loads all the JavaScript and fully renders the page with it. This is not typical of many tools.
#
capjamesg
All of the applications I have built with microformats do a HTTP GET request for the page HTML and don't process JS.
#
[mail918]
gotcha, hmm
#
capjamesg
This is because processing JS adds significant overhead.
#
[mail918]
its a shame this sort of thing never made it into the HTML spec, saw apple proposed something like it in 2017 that never went anywhere
#
[mail918]
is there any sort of templating library that's at least isomorphic in that it can be done both client-side and server-side?
#
[mail918]
i'm trying to make things easily editable without needing to set up a full pipeline so its easier to contribute to
#
capjamesg
I'm not sure. I usually use jinja2 with Python for templating to make components.
#
capjamesg
I have an "includes" folder with various components that I reuse. Those components contain microformats.
#
capjamesg
I know this involves a build step though.
#
[mail918]
that's what I had before (well, liquid not jinja)
#
[tantek]
What is rel-edit
#
Loqi
It looks like we don't have a page for "rel-edit" yet. Would you like to create it? (Or just say "rel-edit is ____", a sentence describing the term)
#
[tantek]
^ capjamesg worth stating that page with IndieWeb Examples, Tools that link to your bookmarklet etc!
ttybitnik joined the channel
#
capjamesg
Will do!
#
[KevinMarks]
Nunjucks is the js equivalent of jinja2 and can be run client side as well as server side (with node). I use it quite a bit
rrix, [morganm], [social], srijan_, qaotsap, strugee_, rossabaker, oodani, eatyourglory, zoglesby, okCiel, srushe, capjamesg and immibis joined the channel