Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Commit

Permalink
update README and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Eastridge committed Sep 22, 2012
1 parent 04a0250 commit e1c854c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 2.0.0b4

- add `template` helper block capture and `yield` variable
- added `Thorax.onException` hook for easier android debugging
- collection `filter` option now hides or shows elements instead of adding or removing them
- collection `filter` option now applied when model change event is triggered
- collection event change: when using view.on({collection: events}) syntax, `CollectionView` instances are now prepended to the array of arguments passed and the callback is now called with the context of the delcaring view
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ Embed a template inside of another, as a string. An associated view (if any) wil

{{template "path/to/template" key="value"}}

If a block is used, the template will have a variable named `yield` available that will contain the contents of the block.

{{#template "child"}}
content in the block will be available in a variable
named "yield" inside the template "child"
{{/template}}

This is useful when a child template will be called from multiple different parents.

### view *{{view name [options]}}*

Embed one view in another. The first argument may be the name of a new view to initialize or a reference to a view that has already been initialized.
Expand Down

0 comments on commit e1c854c

Please sign in to comment.