WebC v0.10.0: Declarative Loops and Flow Control
webc:for
for looping https://www.11ty.dev/docs/languages/webc/#webcfor-loops #28webc:elseif
andwebc:else
https://www.11ty.dev/docs/languages/webc/#webcelseif-and-webcelse #136- Server-only HTML comments
<!--- One more dash at the start and end --->
https://www.11ty.dev/docs/languages/webc/#server-only-comments #126 <script webc:type="js">
(via `webc:is="template") will be treated as HTML-only components and not use the host component tags. #135- 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"
). #138 ⚠️ BREAKING (but low-impact): void elements used as components will be ignored in output when the component has child content. (e.g.img.webc
returning an<img>
without needing usingwebc:root="override"
) #107.
Integrations
- New
koa
WebC integration example added by @sombriks in #134 - Eleventy WebC v0.10.0: https://github.com/11ty/eleventy-plugin-webc/releases/tag/v0.10.0
Milestone: https://github.com/11ty/webc/issues?q=is%3Aclosed+milestone%3A%22WebC+v0.10.0%22
Full Changelog: v0.9.3...v0.10.0