You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using handlebars.js from 448e43c I expected to get some sort of a3 b3 but I got a3 a2. It was really confusing when I got it first time, so I began to investigate.
I came to this:
Rename id to something else:
{{#if order}}
{{#if _id}}
a1
Remove 1 indentation space before {{#if _id}}:
{{#if order}}
{{#if _id}}
a1
With this two "hacks" I got proper, expected result (see console.log output in the provided JSFiddle example). Weird.
Maybe there is logical mistake in my code and I shouldn't use this clumsy construction, but that 1 space looks like a parser bug for me.
Thanks!
The text was updated successfully, but these errors were encountered:
Here is the example: http://jsfiddle.net/Wtw2Z/1/
What I got there?
Here is the template (I extracted it from my project a simplified and bit):
Using handlebars.js from 448e43c I expected to get some sort of
a3 b3
but I gota3 a2
. It was really confusing when I got it first time, so I began to investigate.I came to this:
Rename
id
to something else:Remove 1 indentation space before
{{#if _id}}
:With this two "hacks" I got proper, expected result (see console.log output in the provided JSFiddle example). Weird.
Maybe there is logical mistake in my code and I shouldn't use this clumsy construction, but that 1 space looks like a parser bug for me.
Thanks!
The text was updated successfully, but these errors were encountered: