Event JSON
{
"id": "a8218a1aa47b1ef18580bca1a0b3ecae6d5a376c0ea0d5c6eeb267ad183440b2",
"pubkey": "9e070a616164cf1023d6f9653acfaac080aa16273942a03b5f9c3c19384340ed",
"created_at": 1728640441,
"kind": 1,
"tags": [
[
"p",
"de00cb866513949c5bd26ca29bb633c5eb96e68ce578189d1434dcc26e4f65f6",
"wss://relay.mostr.pub"
],
[
"p",
"11768977929c897710cee321ec092f62220b1f53dbaa0894e7b70c84b52238d3",
"wss://relay.mostr.pub"
],
[
"p",
"0211b8f96b0013387098d8ac759f3caa26bbb13c8f6db35242c8b935369fefd8",
"wss://relay.mostr.pub"
],
[
"p",
"d2de55a66d020f7ee1b419123ecc712cdbb9c2ee6baaaf0a894a87131b8d8c23",
"wss://relay.mostr.pub"
],
[
"t",
"eleventy"
],
[
"t",
"11ty"
],
[
"proxy",
"https://mamot.fr/users/nhoizey/statuses/113288179959808131",
"activitypub"
]
],
"content": "In nostr:npub1mcqvhpn9zw2fck7jdj3fhd3nch4ede5vu4up38g5xnwvymj0vhmqmwc7d9's Eleventy Excellent starter project for nostr:npub1z9mgjaujnjyhwyxwuvs7czf0vg3qk86nmw4q3988kuxgfdfz8rfs9jrz2z, the filters are loaded with https://github.com/madrilene/eleventy-excellent/blob/main/src/_config/filters.js that lists them one after the other.\n\nIs there a way in ESM to do this dynamicaly?\n\nThat's what I did in CJS in my Pack11ty plugin:\nhttps://github.com/nhoizey/eleventy-plugin-pack11ty/blob/main/eleventy-plugin-pack11ty.js#L68-L77\n\nI tried with dynamic import(), but failed.\nhttps://github.com/nhoizey/eleventy-plugin-pack11ty/blob/11ty3/eleventy-plugin-pack11ty.js#L98-L107\n\nThis code runs fine, but then the filters are not found by Eleventy when they're used in templates.\n\n#Eleventy #11ty",
"sig": "c6ef65270b892bc4ab8a732cd6d14c4876fb6a8fc5c730b6c2d46b6cb388a70bcdd0b50a35bd5f6f38a69f82aff1d5c2d269a5755b51e2b380f4aa7e19f73cbd"
}