<commit_before>[up](../../../../GRMustache#documentation), [next](filters.md)

HTML vs. Text Templates
=======================

The Mustache language has a big focus on HTML: it provides HTML-escaping of values by default.

However, GRMustache supports both *HTML templates*, and *text templates*.

HTML templates return HTML: their `{{ name }}` variable tags escape their input. Their `{{{ name }}}` triple mustache variable tags assume HTML input, and do not perform HTML-escape.

Text templates return text: their `{{ name }}` and `{{{ name }}}` tags do not escape their input: they have identical rendering.

The `GRMustacheConfiguration` class is your vector to text & HTML templates.
<commit_msg>Guides WIP<commit_after>[up](../../../../GRMustache#documentation), [next](filters.md)

HTML vs. Text Templates
=======================

The Mustache language has a big focus on HTML: it provides HTML-escaping of values by default.

However, GRMustache supports both *HTML templates*, and *text templates*.

HTML templates return HTML: their `{{ name }}` variable tags escape their input. Their `{{{ name }}}` triple mustache variable tags assume HTML input, and do not perform HTML-escape.

Text templates return text: their `{{ name }}` and `{{{ name }}}` tags do not escape their input: they have identical rendering.

The [GRMustacheConfiguration](configuration.md) class is your vector to text & HTML templates.

{'fraction_non_alphanumeric': 0.1430584918957012, 'fraction_numerical': 0.0, 'mean_word_length': 4.748987854251012, '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': '3672397', 'n_tokens_mistral': 368, 'n_tokens_neox': 355, 'n_words': 169}