You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/dummy/app/pods/docs/components/docs-snippet/template.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Easily render a code snippet with syntax highlighting and a copy-to-clipboard bu
4
4
5
5
## Handlebars
6
6
7
-
To render a Handlebars snippet from one of your templates, wrap it in `{{#docs-snippet name="your-snippet-name.hbs"}}{{/docs-snippet}}`.
7
+
To render a Handlebars snippet from one of your templates, wrap it in `DocsSnippet` component:
8
8
9
9
{{docs/components/docs-snippet/demo1}}
10
10
@@ -16,7 +16,7 @@ All the snippets on this page are actually located in their own component. The a
16
16
17
17
All snippets must have a globally unique name.
18
18
19
-
Note that the block-form of `docs-snippet` won't actually execute your template code, it will just capture the static code and render the snippet. Think of it like Markdown code fences that you can use in your Handlebars templates.
19
+
Note that the block-form of `DocsSnippet` won't actually execute your template code, it will just capture the static code and render the snippet. Think of it like Markdown code fences that you can use in your Handlebars templates.
20
20
21
21
If you want the code to render and also show the snippet, check out the {{docs-link 'Docs Demo component' 'docs.components.docs-demo'}}.
0 commit comments