Files
handlebars.js/spec
kpdecker 4282668d47 Implement parser for else chaining of helpers
Allows users to chain multiple helpers together using their inverse callbacks. I.e.

```
{{#if foo}}
{{else if bar}}
{{else}}
{{/if}}
```

The control flow here effectively causes the helpers to be nested. The above is actually syntactic sugar for this:

```
{{#if foo}}
{{else}}
  {{#if bar}}
  {{else}}
  {{/if}}
{{/if}}
```

Any helper may be used in this manner, the only requirement is they support normal calls and inverse calls.

Introduces a breaking change in that `{{else foo}}` may no longer be used as a root level operator. Instead `{{^foo}}` must be used.

Fixes #72.
2014-10-27 19:17:16 -05:00
..
2013-11-05 18:02:25 -06:00
2014-08-15 00:05:37 -05:00
2014-08-25 13:49:20 -05:00
2014-08-14 00:48:19 -05:00
2014-08-25 13:27:28 -05:00
2014-08-25 23:35:43 -05:00
2014-08-15 01:02:26 -05:00
2014-08-15 01:45:50 -05:00
2014-08-25 00:32:57 -05:00
2014-08-14 00:48:19 -05:00
2014-08-25 23:35:43 -05:00