~/talk

Plumbing the Depths of Handlebars

Talkat Node.js Interactive 2015 · 2015-12-08..12-09· [javascript, web-platform]
links:none on file
slides:none on file

Explains concrete Handlebars behavior and tooling: registerHelper/registerPartial global hashes store helpers and partials (partials compile into functions on first render), helpers shadow same-named context properties so postfixing names avoids collisions, Handlebars implements mustache conditional blocks ({{#prop}}), Java/.NET/PHP ports exist but vary in features, partials accept scoped variables, helper callbacks see a mutable this as the current context, decorators with @debug can inspect runtime data, tilde (~) trims whitespace, and templates precompile via Grunt/Gulp into a single JS file that registers ready-to-run templates.

AI-written summary · about

  1. 0:00Introduction
  2. 2:09Helpers and partials
  3. 3:42Helper scope and naming
  4. 4:54Conditional block syntax
  5. 5:33Platform and framework support
  6. 7:14The 'this' context
  7. 8:59Executing object functions
  8. 10:09Advanced partial usage
  9. 14:39Decorators
  10. 15:46Controlling whitespace
  11. 17:11Pre-compilation and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.