<commit_before>[![MIT License][license-image]][license-url]
# Tangular
> A simple template engine like Angular.js for JavaScript or node.js

- only __3.0 kB__
- syntax like __Angular.js__ templates
- supports custom helpers
- supports conditions (+ nested conditions)
- supports loops (+ nested loops)
- no dependencies
- IE `>= 9`
- best of use with [www.totaljs.com - web application framework for node.js](http://www.totaljs.com)
- Live example on [JSFiddle / Tangular](http://jsfiddle.net/petersirka/ftfvba65/2/)
- [__DEMO EXAMPLE__](http://example.jcomponent.org)

```bash
npm install tangular
```

__YOU MUST SEE:__

- [jComponent - A component library for jQuery](https://github.com/petersirka/jComponent)
- [jRouting - HTML 5 routing via History API](https://github.com/petersirka/jRouting)
- [jQuery two way bindings](https://github.com/petersirka/jquery.bindings)

## Example

```javascript
var output = Tangular.render('Hello {{name}} and {{name | raw}}!', { name: '<b>world</b>' });
// Hello &lt;b&gt;world&lt;/b&gt; and <b>world</b>!
```<commit_msg>Add node.js.<commit_after>[![MIT License][license-image]][license-url]
# Tangular
> A simple template engine like Angular.js for JavaScript or node.js

- only __3.0 kB__
- syntax like __Angular.js__ templates
- supports custom helpers
- supports conditions (+ nested conditions)
- supports loops (+ nested loops)
- no dependencies
- IE `>= 9`
- best of use with [www.totaljs.com - web application framework for node.js](http://www.totaljs.com)
- Live example on [JSFiddle / Tangular](http://jsfiddle.net/petersirka/ftfvba65/2/)
- [__DEMO EXAMPLE__](http://example.jcomponent.org)

__YOU MUST SEE:__

- [jComponent - A component library for jQuery](https://github.com/petersirka/jComponent)
- [jRouting - HTML 5 routing via History API](https://github.com/petersirka/jRouting)
- [jQuery two way bindings](https://github.com/petersirka/jquery.bindings)


## Node.js

```bash
npm install tangular
```

```javacript
var Tangular = require('tangular');
```

## Example

```javascript
var output = Tangular.render('Hello {{name}} and {{name | raw}}!', { name: '<b>world</b>' });
// Hello &lt;b&gt;world&lt;/b&gt; and <b>world</b>!
```
{'fraction_non_alphanumeric': 0.1639269406392694, 'fraction_numerical': 0.006392694063926941, 'mean_word_length': 4.560913705583756, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, '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': '5228959', 'n_tokens_mistral': 761, 'n_tokens_neox': 719, 'n_words': 188}