Skip to content

Commit

Permalink
Valid settings function
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickocoffeyo committed Sep 25, 2013
1 parent 8fdac60 commit a4d5ff9
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,24 @@ Define a helper for the first argument like the following:

```coffeescript
Template.foo.settings = function() {
position: "top",
limit: 5,
rules: [
{
token: '@',
collection: Meteor.users,
field: "username",
template: Template.userPill
},
{
token: '!',
collection: Dataset,
field: "_id",
template: Template.dataPiece
}
]
return {
position: "top",
limit: 5,
rules: [
{
token: '@',
collection: Meteor.users,
field: "username",
template: Template.userPill
},
{
token: '!',
collection: Dataset,
field: "_id",
template: Template.dataPiece
}
]
}
};
```

Expand Down

0 comments on commit a4d5ff9

Please sign in to comment.