Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelangelo Jong authored Nov 26, 2016
1 parent 574dd9c commit d276a6a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ Bars is a lightweight high performance HTML aware templating engine. Bars emits

Bars is still in early development, please share any suggestions and report any bugs to the [GitHub issues](https://github.com/Mike96Angelo/Bars/issues) page, so we can continue to improve Bars. If you want to contribute to Bars, [fork Bars on GitHub](https://github.com/Mike96Angelo/Bars) and send in a pull request. For ways to contribute check out the [issues](https://github.com/Mike96Angelo/Bars/issues) page on GitHub.

* [Try Bars](https://jsfiddle.net/bba4kk3d/2/).
* [Benchmark](http://jsfiddle.net/yE9Z9/92/).

### Install:
```
$ npm install bars
Expand Down Expand Up @@ -69,6 +66,8 @@ THE CAT IN THE HAT
```

For all features see [Bars Spec](bars-spec.md).
* [Try Bars](https://jsfiddle.net/bba4kk3d/2/).
* [Benchmark](http://jsfiddle.net/yE9Z9/92/)

## Table of Contents

Expand Down Expand Up @@ -161,7 +160,7 @@ bars.registerBlock('unless', function unlessBlock(con) {

/**
* To use the `unless` block in a template
* use this {{#unless <arg>}} {{else}} {{/unless}}.
* use this {{#unless <expression> <context-map>?}} {{else}} {{/unless}}.
*/
```

Expand All @@ -176,11 +175,11 @@ Returns *this* [Bars](#bars).

Example:
```javascript
bars.registerPartial('person', '<h2>{{name}}</h2>{{#if age}} - {{age}}{{/if}}');
bars.registerPartial('person', builtTemplate);

/**
* To use the `person` partial in another
* template use this {{>person <arg>}}.
* template use this {{>person <expression|context-map>?}}.
*/
```

Expand All @@ -201,7 +200,7 @@ bars.registerTransform('upperCase', function upperCase(a) {

/**
* To use the `upperCase` transform in a
* template use this {{@upperCase(<arg>)}}.
* template use this {{@upperCase(<expression>)}}.
*/
```

Expand Down

0 comments on commit d276a6a

Please sign in to comment.