Eleventy WebC v0.10.0: Declarative Loops and Flow Control
Upgrades to WebC v0.10.0: more context on the full WebC Release Notes
webc:for
for looping https://www.11ty.dev/docs/languages/webc/#webcfor-loopswebc:elseif
andwebc:else
https://www.11ty.dev/docs/languages/webc/#webcelseif-and-webcelse- Server-only HTML comments
<!--- One more dash at the start and end --->
https://www.11ty.dev/docs/languages/webc/#server-only-comments <script webc:type="js">
(via impliedwebc:is="template"
) will be treated as HTML-only components and not use the host component tags (via impliedwebc:nokeep
).- Relax circular dependency errors: instead of throwing an error, we now treat this as a plain HTML tag instead of a WebC component. This makes it easier to override HTML tags (e.g.
img.webc
returning an<img>
without needing usingwebc:root="override"
). ⚠️ BREAKING (but low-impact): void elements (self-closing elements without a closing tag) used as components will be ignored in output when the component has child content. (e.g.img.webc
returning an<img>
without needing to usewebc:root="override"
)
Full Changelog: v0.9.4...v0.10.0