~/talk

Using Eleventy and WebC for Simpler, Performant Web Components

Talkat TheJam.dev 2023 · 2023-01-25..01-26· [web-platform, web-performance]
slides:none on file

WebC is an Eleventy plugin that generates server‑rendered components from .webc files, reducing or eliminating shipped JavaScript and letting Eleventy extract and bundle JS/CSS into page buckets; requires Eleventy 1.2.x beta, npm install @11ty/webc and enable in .eleventy.js. Components support attributes binding, slots, conditionals, and can embed Liquid or other template languages for looping. CSS can be scoped CSS (Eleventy adds prefix wrappers), and scripts become bundled assets unless explicitly left raw. A Google Static Maps component is built in minutes and outputs plain image tags with no JavaScript.

AI-written summary · about

  1. 0:00Introduction and context
  2. 3:24Understanding web components
  3. 8:52Getting started with WebC
  4. 11:50Building static components
  5. 14:01Working with data and logic
  6. 18:44Slots in WebC
  7. 21:31Managing JavaScript in WebC
  8. 25:48Scoped CSS and advanced use
  9. 29:47Practical component demo
  10. 31:45Q&A and closing thoughts
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.