~/talk

Progressive decoupling in action: using Vue.js to ...

Talkat DrupalCon Amsterdam 2019 · 2019-10-28..10-31· [vue, frontend-architecture]
slides:none on file

Demonstrates a real Drupal 8 site where Vue.js adds dynamic, app-like behavior to course pages: variant data lives in rendered HTML and is passed via Drupal settings to a small Vue app that uses v-model and computed properties, toggles visibility with V-show vs V-if, updates the URL, and lets editors keep a single canonical page to stop duplicate-content penalties. Uses a custom Twig macro (and Bamboo Twig) to wrap variant fields, no JSON API calls needed, swaps minified/dev builds via hook_library_info_alter, and runs in production with few bugs.

AI-written summary · about

  1. 0:00Intro
  2. 1:28The continuum of decoupling
  3. 2:50With progressive decoupling
  4. 6:17What is Vue?
  5. 7:45A scale of framework footprint size
  6. 9:38Deal with data, not the DOM!
  7. 10:38Bonus use: a jQuery replacement!
  8. 11:00Toggling a class the jQuery way
  9. 11:21and the Vue way
  10. 12:42Easy-going learning curve
  11. 16:33No build procOSS
  12. 16:59Complementary with Drupal
  13. 17:47The problem
  14. 19:44The solution
  15. 23:04Passing data via drupalSettings
  16. 24:59How it works
  17. 26:48Showing variant data with a Twig macro
  18. 33:40Be careful with Twig
  19. 35:07Switching between development and prod Vue
  20. 35:37Theme debugging tip
~/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.