wycats/handlebars.js — Issue #179: Error when template contains else right after #if
Author: pixelcort
Created: 2012-02-11 02:18:56+00:00
State: open

So if I have a template like:

{{#if booleanValue}}{{else}}

Nope

{{/if}}

I get an error.

Workaround is to put some whitespace in:

{{#if booleanValue}} {{else}}

Nope

{{/if}}

http://jsfiddle.net/pixelcort/djSkL/