~/talk

Taming Twig

Talkat MidCamp 2018 · 2018-03-08..03-12· [frontend-architecture, css]
links:none on file
slides:none on file

Enables Twig debug by setting debug: true, auto_reload: true, cache: false in the services YAML, uses dump() and Devel/Kint but warns Kint can blow memory so prefers targeted dumps or the loop over _context to avoid the white screen, and recommends the contributed filters from the Twig Field Value module—especially field_target_entity and field_raw—to pull nested entity fields without preprocessors; checklist: clear caches, inspect template suggestions, check watchdog/reports, decide if error is in a preprocessor or the Twig file, increase PHP memory or show all errors.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Debugging Twig setup
  3. 6:38Debugging Twig tools
  4. 9:50Finding field values
  5. 13:05Using Twig filters
  6. 17:27Debugging content variables
  7. 20:35Twig field value module
  8. 25:56Avoiding PHP errors
  9. 29:29White screen of death
  10. 36:38Where to get advanced help
  11. 41:50Q&A
~/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.