<commit_before>jquery-handlebars
=================

A [jQuery](http://jquery.com/) plugin to render [Handlebars.js](http://handlebarsjs.com/) templates into elements.

Template scripts are retrieved through AJAX, precompiled and cached.

Download
--------

[Version 1.1](https://raw.github.com/71104/jquery-handlebars/1.1.1/bin/jquery-handlebars-1.1.1.min.js) available.

Getting Started
---------------

Each jQuery object has a `render` method that:
- retrieves the specified template (either from cache or by fetching through AJAX and compiling with Handlebars),
- renders it through Handlebars using the specified context object,
- passes the output string to the jQuery object's `html` method.

Example:

```handlebars
<p>{{ field1 }}, {{ field2 }}</p>
```

```javascript
// will fetch <template.handlebars> and render to the DOM element whose id is "content"<commit_msg>Download link<commit_after>jquery-handlebars
=================

A [jQuery](http://jquery.com/) plugin to render [Handlebars.js](http://handlebarsjs.com/) templates into elements.

Template scripts are retrieved through AJAX, precompiled and cached.

Download
--------

[Version 1.1](https://github.com/71104/jquery-handlebars/archive/1.1.3.zip) available.

Getting Started
---------------

Each jQuery object has a `render` method that:
- retrieves the specified template (either from cache or by fetching through AJAX and compiling with Handlebars),
- renders it through Handlebars using the specified context object,
- passes the output string to the jQuery object's `html` method.

Example:

```handlebars
<p>{{ field1 }}, {{ field2 }}</p>
```

```javascript
// will fetch <template.handlebars> and render to the DOM element whose id is "content"
{'fraction_non_alphanumeric': 0.1536231884057971, 'fraction_numerical': 0.01565217391304348, 'mean_word_length': 4.183183183183183, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381011', 'n_tokens_mistral': 505, 'n_tokens_neox': 468, 'n_words': 176}