Skip to content

Instantly share code, notes, and snippets.

View asselin's full-sized avatar

Andre Asselin asselin

View GitHub Profile
@asselin
asselin / doc.html
Created May 21, 2012 15:32
Handlebars helper for generic Javascript expressions
This helper allows you to use generic javascript expressions in a handlebars template. It can be used to call Javascript functions on a value or do data structure access that Handlebars doesn't support (e.g. accessing an element of an array).
@asselin
asselin / example.html
Created May 21, 2012 15:25
Handlebars block helper to extend if to support generic Javascript logical expressions
{{#jsif "astring=='abc'"}}
Is true
{{else}}
Is false
{{/jsif}}