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
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
@jgarber any supported template type can be a layout!
=> More informations about this toot | More toots from eleventy@fosstodon.org This content has been proxied by September (3851b).Proxy Information
text/gemini