An open API service indexing awesome lists of open source software.

https://github.com/rendfall/test-templates

Demo:
https://github.com/rendfall/test-templates

Last synced: 12 months ago
JSON representation

Demo:

Awesome Lists containing this project

README

          

# Templates

> Tiny library to generate template with data binding.

## Usage

Template:

```html


{{ title }}



{{ nodef }}



```

Render:

```js
var $content = document.getElementById('content');

$content.innerHTML = Template.compile($content.innerHTML, {
title: 'This is an example',
link: 'http://fakeimg.pl/250x100/ff0000/'
});
```

## Unit tests

```
$ npm test
```