Ancestors

Written by Jason Garber on 2025-01-11 at 19:53

I found something interesting and new-to-me last night in the @eleventy documentation, so… I turned it into a plug-in:

https://codeberg.org/jgarber/eleventy-plugin-routes

=> More informations about this toot | More toots from jgarber@indieweb.social

Toot

Written by Jason Garber on 2025-01-18 at 16:38

Another late night new-to-me @eleventy discovery:

JavaScript templates (e.g. some-page.11ty.js) can have layouts! I couldn’t find this in the documentation, but it works.

Using a JavaScript class, set a layout key and value on the returned object from the data() function. The return value from the render() method is exposed as content to the defined layout.

https://www.11ty.dev/docs/languages/javascript/

[#]Eleventy #11ty

=> More informations about this toot | More toots from jgarber@indieweb.social

Descendants

Written by Eleventy 🎈 v3.0.0 on 2025-01-28 at 18:43

@jgarber any supported template type can be a layout!

=> More informations about this toot | More toots from eleventy@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113850339870788655
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
280.963841 milliseconds
Gemini-to-HTML Time
0.684129 milliseconds

This content has been proxied by September (3851b).