: The Hidden Power of HTMLBars
summary
Ember templates move from dynamic to lexical (static) scoping, so names resolve by source location rather than call stack, which makes templates easier to reason about and faster to optimize. The implementation uses Glimmer/HTMLBars features: actions-as-closures, the component helper for closure components, partial application of arguments, and proposed local lookup (pods) for private components. Examples include yielding curried actions, composing components as first-class values, and even recursive component rendering; some features are on canary.
AI-written summary · about
