zaku:handlebars-obj

v0.2.0Published 6 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

handlebars-obj

Build Status

This Version is depricated with meteor 0.8.0 - see ui-obj for a 0.8.0 compatible version

Easily create plain objects with computed keys as Handlebars helper.

Useful to set the context of the current scope e.g. for iron-router paths.

{{#with $obj "one" 1 "two" 2}}

sets context to

{one: 1, two: 2}

Merge the context within a each block with the outer context

{{#each items}}
  {{#with $obj .. .}}