~/talk

Talking Twig

Talkat MidCamp 2017 · 2017-03-30..04-02· [frontend-architecture, css]
links:none on file
slides:none on file

Proposes replacing many near-identical field templates with one base field.html.twig that uses null coalescing ternary and extends + blocks to choose wrapper elements and classes, so a child template can set element=h2 and classes="call-out headline" in three lines instead of duplicating HTML; demonstrates reuse for blocks/forms, notes Twig searches templates recursively, is 100% backward-compatible, and recommends the twig_tweak module to simplify raw field output.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33Outline
  3. 2:22Background
  4. 2:58Twig Essentials
  5. 3:20Advanced Features
  6. 4:33Advanced Functions
  7. 5:46BAM
  8. 7:46Template Suggestions
  9. 9:55Template Anatomy
  10. 11:39Template Example 1
  11. 12:30Template Example 2
  12. 13:18Working with Twig Templates
  13. 17:42Deep in the weeds
  14. 18:04Recap
  15. 19:40CSS Classes
  16. 20:29Custom HTML Elements
  17. 21:09In Action
  18. 21:58Final Template
  19. 24:29Notes
  20. 26:15Templates
  21. 28:57Blocks
  22. 30:28Resources
  23. 32:12Questions
  24. 36:16Functions
~/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.