Crafting the Perfect Computed Property
summary
Ember.String.format was deprecated so the team builds an Ember add-on that parses plain template strings and compiles them into normal computed-property functions at build time, using a template string parser and bubble transforms to replace the AST. Tagged template literals and an HTMLBars precompile option fail because variable parts aren’t resolvable at module runtime, so the runtime output is just simple concatenation, the add-on is open sourced, and the examples compile to the canonical multi-line CP functions while keeping one-line source ergonomics.
AI-written summary · about
