Closed voxpelli closed 2 years ago
Some progress on 1.
:
"permalink": "<div webc:nokeep @text='`subdir/${slugify(title)}/index.html`'></div>"
Yeahhhhhh… this is a hefty bug—sorry. But easily fixable. I just need to map the dynamic attribute JavaScript parsing code to the Eleventy Custom template permalink stuff: https://www.11ty.dev/docs/languages/custom/#compileoptions.permalink-to-override-permalink-compilation
This will ship with Eleventy WebC 0.7.0
Glad to see my workaround for https://github.com/11ty/eleventy-plugin-webc/issues/36 is no longer needed 😄
When using liquid I had a
news.11tydata.json
containing:When using WebC I should instead be using WebC for that? Feels like a challenge? I would preferably use eg. liquid for my permalinks and only WebC for my actual HTML
This plugin could provide a custom behavior by setting
permalink
incompilerOptions
to a function orfalse
: https://github.com/11ty/eleventy-plugin-webc/blob/f7bc146888a15f7e057570ffa40bc1c65daf1a09/src/eleventyWebcTemplate.js#L84-L90I think it should done of: