~/talk

(Headless) WordPress Shortcodes as Svelte Components

Talkat Svelte Summit Fall 2024 · on Saturday, 2024-10-19· [web-platform, component-design]
name:Elron
links:none on file
slides:none on file

Converts WordPress shortcodes into live Svelte components via a small library that parses markup and a components map, so a [youtube id="..."] shortcode becomes a lazy-play Svelte iframe and a [alertbutton] inner text becomes a clickable Svelte button. Usage: import the component, pass markup string and components map, map shortcode attributes to props like id/video, and use slots for inner text. Demo shows working headless WordPress rendering, event handlers (alert) and iframe replacement on play.

AI-written summary · about

  1. 0:00Introduction to the project
  2. 1:00WordPress and interactivity
  3. 2:10Headless CMS approach
  4. 3:00Integrating Svelte shortcodes
  5. 4:10Library demonstration
  6. 5:57Advanced usage and conclusion
~/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.