Lauren Hamel
Lauren Hamel
This fixes the `truncateWords` helper and closes #344. It also slightly modifies the string returned by `truncateWords` to more closely resemble the `truncate` helper and adds in tests.
I'm attempting to use the `truncateWords` helper, but it's failing to truncate a block of text. It looks like the culprit is this line in the helper's definition: ```js if...
The Handlebars Code: ------------- **This doesn't work:** ```handlebars {{#if conditionA }} {{#if conditionA1 }} // Do something then do more stuff conditionally {{#if conditionA1.1 }} // Do something here {{else...
The Handlebars Code: ------------- ```handlebars {{#custom-block 'some-text' data=(custom-helper opt_a='foo' opt_b='bar' )}} ... {{/custom-block}} ``` The Issue: ---------- While cleaning up some code to make things easier to read, I ran...