<commit_before># Synopsis

Transparency is a client-side template engine which binds data to DOM. Just call `.render(data)`.

```html
<div id="template">
  <span class="greeting"></span>
  <span data-bind="name"></span>
</div>
```

```js
var hello = {
  greeting: 'Hello',
  name:     'world!'
};

$('#template').render(hello);
```

```html
<div id="template">
  <span class="greeting">Hello</span>
  <span data-bind="name">world!</span>
</div>
```

[![Build Status](https://secure.travis-ci.org/leonidas/transparency.png?branch=master)](http://travis-ci.org/leonidas/transparency)

## Features

* **Semantic data binding** - No need for `<%=foo%>` or `{{foo}}` assignments
* **Collection rendering** - No need for hand-written loops
* **Valid HTML templates** - Write templates as a part of the HTML, in plain HTML
* **View logic in JavaScript** - No crippled micro-template language, just plain JavaScript functions

Transparency is compatible with IE9+, Chrome, Firefox, iOS, Android and other mobile browsers. Support for IE8 requires jQuery.

[![browser support](https://ci.testling.com/leonidas/transparency.png)](https://ci.testling.com/leonidas/transparency)

## Community

* IRC: [freenode/#transparency.js](http://webchat.freenode.net/)
* Google Groups: <EMAIL>

## Fiddle

[Try Transparency](http://leonidas.github.com/transparency/) with interactive examples.

## Install

```
curl https://raw.github.com/leonidas/transparency/master/dist/transparency.min.js
<commit_msg>Remove testling badge, as testling ci has been mostly unavailable for three months.<commit_after># Synopsis

Transparency is a client-side template engine which binds data to DOM. Just call `.render(data)`.

```html
<div id="template">
  <span class="greeting"></span>
  <span data-bind="name"></span>
</div>
```

```js
var hello = {
  greeting: 'Hello',
  name:     'world!'
};

$('#template').render(hello);
```

```html
<div id="template">
  <span class="greeting">Hello</span>
  <span data-bind="name">world!</span>
</div>
```

[![Build Status](https://secure.travis-ci.org/leonidas/transparency.png?branch=master)](http://travis-ci.org/leonidas/transparency)

## Features

* **Semantic data binding** - No need for `<%=foo%>` or `{{foo}}` assignments
* **Collection rendering** - No need for hand-written loops
* **Valid HTML templates** - Write templates as a part of the HTML, in plain HTML
* **View logic in JavaScript** - No crippled micro-template language, just plain JavaScript functions

Transparency is compatible with IE9+, Chrome, Firefox, iOS, Android and other mobile browsers. Support for IE8 requires jQuery.

## Community

* IRC: [freenode/#transparency.js](http://webchat.freenode.net/)
* Google Groups: <EMAIL>

## Fiddle

[Try Transparency](http://leonidas.github.com/transparency/) with interactive examples.

## Install

```
curl https://raw.github.com/leonidas/transparency/master/dist/transparency.min.js

{'fraction_non_alphanumeric': 0.16803840877914952, 'fraction_numerical': 0.0013717421124828531, 'mean_word_length': 4.928861788617886, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 6, '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': '6969621', 'n_tokens_mistral': 946, 'n_tokens_neox': 916, 'n_words': 252}