<commit_before>tee.js
======

A small html-snippet helper library.

Created for use in client-side javascript, tee.js defines a global object, 
't', which lets you write small snippets of sugary, no-mistakes HTML.

t provides a function for every html5 tag, and allows you to pass in both content and attributes on the tag.

Examples
--------
```
t.h1({ class: 'first-snippet'}, "Hello World" )
```
returns:
```
"<h1 class='first-snippet'>Hello World</h1>"
```

Pass arguments in either order.
```
t.h1("Hello World", { class: 'first-snippet'})
```
returns
```
"<h1 class='first-snippet'>Hello World</h1>"
```

Tags are also nestable:
```
t.div({ class: 'parent'}, t.p({ class: 'child'}, "text"));
```
returns
```
"<div class='parent'><p class='child'>text</p></div>"
```

Dependencies
------------
underscore.js<commit_msg>add tests to documentation<commit_after>tee.js
======

A small html-snippet helper library.

Created for use in client-side javascript, tee.js defines a global object, 
't', which lets you write small snippets of sugary, no-mistakes HTML.

t provides a function for every html5 tag, and allows you to pass in both content and attributes on the tag.

Examples
--------
```
t.h1({ class: 'first-snippet'}, "Hello World" )
```
returns:
```
"<h1 class='first-snippet'>Hello World</h1>"
```

Pass arguments in either order.
```
t.h1("Hello World", { class: 'first-snippet'})
```
returns
```
"<h1 class='first-snippet'>Hello World</h1>"
```

Tags are also nestable:
```
t.div({ class: 'parent'}, t.p({ class: 'child'}, "text"));
```
returns
```
"<div class='parent'><p class='child'>text</p></div>"
```

Dependencies
------------
underscore.js


Tests
-----
run tests with ```testem```
{'fraction_non_alphanumeric': 0.20493247210804463, 'fraction_numerical': 0.008220786846741044, 'mean_word_length': 4.2110091743119265, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2572931', 'n_tokens_mistral': 599, 'n_tokens_neox': 553, 'n_words': 185}