meteor-underscore-helper

Underscore functions directly available in templates

Stars
18
- NOTE: This package is not maintained anymore.
- If you want to help, please reach out to [email protected]

Underscore Helper

Brings Underscore functions directly in templates

Installation

For Meteor 0.9+

meteor add gwendall:underscore-helper

For Meteor < 0.9

mrt add underscore-helper

Examples

{{#if _ "isString" "bonjour"}}
  It is!
{{else}}
  It is not :(
{{/if}}

// > Returns "It is!"
// With var items = [1, 2, 3];

{{_ "size" items}}

// > Returns 3