<commit_before># Docs Snippet

Easily render a code snippet with syntax highlighting and a copy-to-clipboard button.

## Handlebars

To render a Handlebars snippet from one of your templates, wrap it in `{{#docs-snippet name="your-snippet-name.hbs"}}`.

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

All snippets must have a globally unique name.

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.
<commit_msg>without a closing tag, this breaks formatting on the rest of the page<commit_after># Docs Snippet

Easily render a code snippet with syntax highlighting and a copy-to-clipboard button.

## Handlebars

To render a Handlebars snippet from one of your templates, wrap it in `{{#docs-snippet name="your-snippet-name.hbs"}}{{/docs-snippet}}`.

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

All snippets must have a globally unique name.

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.

{'fraction_non_alphanumeric': 0.07309236947791165, 'fraction_numerical': 0.001606425702811245, 'mean_word_length': 4.689497716894977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4042877', 'n_tokens_mistral': 356, 'n_tokens_neox': 340, 'n_words': 168}