<commit_before>Template
============

Template is a context aware template engine with conditional replacement & iteration.

How to use
---------------------

Substitution is driven by tags that defined which action will be taken and whether the context should be switched. there are some predefined tags:

## Example 1 {#Tag:example-1}

	var template = 'Hi, my name is {name}';

	new Template().substitute(template, {name: 'Bob'}) // -> Hi, my name is Bob

## Example 2 {#Tag:example-2}
<commit_msg>demo link<commit_after>Template
============

Template is a context aware template engine with conditional replacement & iteration.

[Demo](http://jsfiddle.net/tbela99/ygWKc/)

How to use
---------------------

Substitution is driven by tags that defined which action will be taken and whether the context should be switched. there are some predefined tags:

## Example 1 {#Tag:example-1}

	var template = 'Hi, my name is {name}';

	new Template().substitute(template, {name: 'Bob'}) // -> Hi, my name is Bob

## Example 2 {#Tag:example-2}

{'fraction_non_alphanumeric': 0.15865384615384615, 'fraction_numerical': 0.009615384615384616, 'mean_word_length': 3.6473214285714284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6656468', 'n_tokens_mistral': 302, 'n_tokens_neox': 274, 'n_words': 124}