Skip to content

Commit 66ae97e

Browse files
committed
Clarify docs snippet
1 parent b56b72b commit 66ae97e

File tree

1 file changed

+5
-1
lines changed
  • tests/dummy/app/pods/docs/components/docs-snippet

1 file changed

+5
-1
lines changed

tests/dummy/app/pods/docs/components/docs-snippet/template.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@
4545
<p>Then in any of you templates, you can use the non-block form of <code>docs-snippet</code> to render your named snippet:</p>
4646

4747
{{#docs-snippet name="my-snippet-src2"}}
48-
{{docs-snippet name='my-snippet'}}
48+
{{docs-snippet name='my-snippet.js'}}
4949
{{/docs-snippet}}
50+
51+
<p>Be sure to include the file extension.</p>
52+
53+
<p>Code snippets are provided by the `ember-code-snippet` addon and are made available to your app via the `dummy/snippets` importable ES6 module. If you ever want to debug which snippets are getting registered, you can open this module in your devtools (+O, dummy/snippet).</p>

0 commit comments

Comments
 (0)