Tom on Nostr: -- use case no. 2 for my #Eleventy `customFilter` shortcode that's already been used ...
https://ttntm.me/albums/ -- use case no. 2 for my #Eleventy `customFilter` shortcode that's already been used for the /whisky page.
I did half an hour of refactoring last night, replaced an event handler with an IIFE and that was it pretty much. I ended up with code that's perfectly composable, takes a minimal configuration object and processes both collections and data files - nice 🤤
Reminder for self: good topic for a longer article.
#WebDev
Published at
2024-05-27 10:57:07Event JSON
{
"id": "1f3695459c004e60e8ec7cc66197c49003bafc78466cbfc14c9ebf57daabd7bf",
"pubkey": "f686324a6f514c4a6874e9ec813398869a7fcb3232cd8112cc2f238078518b8e",
"created_at": 1716807427,
"kind": 1,
"tags": [
[
"t",
"eleventy"
],
[
"t",
"webdev"
],
[
"proxy",
"https://fosstodon.org/users/ttntm/statuses/112512691575756393",
"activitypub"
]
],
"content": "https://ttntm.me/albums/ -- use case no. 2 for my #Eleventy `customFilter` shortcode that's already been used for the /whisky page. \n\nI did half an hour of refactoring last night, replaced an event handler with an IIFE and that was it pretty much. I ended up with code that's perfectly composable, takes a minimal configuration object and processes both collections and data files - nice 🤤\n\nReminder for self: good topic for a longer article.\n\n#WebDev",
"sig": "6993d019ff32bfbd00d02989243abf21e21cbdbb5b0ca64931c09d49804e89b029f0621b8548fd13528a2473d1ab3b7ec16aa59dce7a6b5aa110217f63de5210"
}