Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonmoeller committed Jan 2, 2015
1 parent 269a2c4 commit c9bd764
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ module.exports = function (text) {
};
```

When registering an unnamed helper, the helper will be named according to the file path and name without the extension. So a helper with a path of `string/upper.js` will be named `string-upper`. Note that path separators are replaced with hyphens to avoid having to use [square brackets](http://handlebarsjs.com/expressions.html#basic-blocks).

As an object of helper functions:

```js
Expand Down Expand Up @@ -120,6 +122,8 @@ As a standalone Handlebars file:
<a href="{{url}}">{{text}}</a>
```

When registering an unnamed partial, the partial will be named according to the file path and name without the extension. So a partial with a path of `component/link.hbs` will be named `component/link`.

As an object of partials:

```js
Expand Down

0 comments on commit c9bd764

Please sign in to comment.