~/talk

What the frontend? Get the most out of Twig, render arrays and D8's caching

Talkat DrupalCamp NJ 2020 · 2020-01-31..02-01· [web-platform, frontend-architecture]
links:none on file
slides:none on file

Covers concrete, actionable items: Twig syntax and filters, use embed for reusable templates, and how to enable twig debug in sites/default/services.yml to see candidate override names. Shows a live site that renders an external donate form and CAPTCHA via twig functions plus a custom dynamic header that works. Explains render arrays (keys with # are special), common types like markup/plain_text, and Drupal 8 caching with cache tags, cache contexts, and max-age and how tag bubbling makes per-user blocks force unique page caches.

AI-written summary · about

  1. 0:00Intro
  2. 5:16Twig Syntax: HTML & JavaScript
  3. 8:58Twig Syntax: Twig Functions
  4. 10:15What are Twig Filters?
  5. 14:43Embed - best of include & extends
  6. 16:42Custom Overrides
  7. 19:10Twig file custom override suggestions
  8. 23:03Best Twig Var Debugging
  9. 25:12Twig Tweak!
  10. 28:22Rendering in Page Lifecycle
  11. 30:24Format & Structure
  12. 31:28Render Elements
  13. 32:36Render Array Example
  14. 34:00Examples: #markup
  15. 34:17Examples: #plain_text
  16. 34:59Examples: #type: checkbox
  17. 36:45Caching Considerations
  18. 37:04Drupal Cache Tags
  19. 37:30Custom caching configuration
~/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.