- Component Colocation: HBS + (J|T)S
- SFC: G(J|T)S with template imports
- Merged Component: one JS file with
setComponentTemplate
andprecompileTemplate
- Wire Format: Output of
precompile
Input | Component Colocation |
Output | Merged Component |
Processor | babel + @embroider/addon-dev/template-colocation-plugin |
Execution Context | Build |
Usage | Addons v2 |
Input | SFC |
Output | Merged Component |
Processor | babel + ember-template-imports |
Execution Context | Build |
Usage | Apps |
RFC | 779 - First Class Component Templates |
Input | SFC |
Output | Merged Component |
Processor | babel + ember-template-imports |
Execution Context | Build |
Usage | Addons v2 |
RFC | 779 - First Class Component Templates |
Turn template string into wire format
Input | Merged Component |
Output | Wire Format |
Processor | babel + babel-plugin-ember-template-compilation |
Execution Context | Build |
Usage | Apps |
RFC | 496 - Handlebars Strict Mode |
Make wire format available to ember for rehydration
Input | Wire Format |
Output | ? |
Processor | createTemplateFactory() from @ember/template-factory |
Execution Context | Runtime |
Usage | Apps |
RFC | 496 - Handlebars Strict Mode |
Combination of precompile
+ template
at runtime.