Skip to content

Commit dfd71ae

Browse files
authored
Update docs-snippet guide
1 parent 1f9f9dd commit dfd71ae

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Easily render a code snippet with syntax highlighting and a copy-to-clipboard bu
44

55
## Handlebars
66

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:
88

99
{{docs/components/docs-snippet/demo1}}
1010

@@ -16,7 +16,7 @@ All the snippets on this page are actually located in their own component. The a
1616

1717
All snippets must have a globally unique name.
1818

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.
2020

2121
If you want the code to render and also show the snippet, check out the {{docs-link 'Docs Demo component' 'docs.components.docs-demo'}}.
2222

0 commit comments

Comments
 (0)