Skip to content

Commit d37f2f7

Browse files
committed
Updating documentation comment post-removal of template-only-glimmer-components optional feature.
1 parent fb105f9 commit d37f2f7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/@ember/component/template-only.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).
1010
Specifically, this means that the template will be rendered as "outer HTML".
1111
12-
In general, this method will be used by build time tooling and would not be directly written in an application. However,
13-
at times it may be useful to use directly to leverage the "outer HTML" semantics mentioned above. For example, if an addon would like
14-
to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the
15-
`template-only-glimmer-components` optional feature.
12+
In apps, this method will usually be inserted by build-time tooling the handles converting `.hbs` files into component Javascript modules and
13+
would not be directly written by the application author.
14+
15+
Addons may want to use this method directly to ensure that a template-only component is treated consistently in all Ember versions (Ember versions
16+
before 4.0 have a "template-only-glimmer-components" optional feature that causes a standalone `.hbs` file to be interpreted differently).
1617
1718
@example
1819

0 commit comments

Comments
 (0)