assemble / assemble-handlebars

Assemble engine plugin for Handlebars templates
https://github.com/assemble/assemble
MIT License
8 stars 19 forks source link

Scope issue in if helper after updating to handlebars >= 4.0.0 #32

Closed derKuba closed 8 years ago

derKuba commented 8 years ago

After i updated to the newest version of handlebars the scope in if blocks did not work the same.

{{#each users }}
    {{#if this.person }}
        {{ ../../users.length }} // <= 4.0.0
        {{ ../users.length }} // >= 4.0.0
    {{/if}}
{{/each}}

Do you have any plans to update handlebars?

assemblebot commented 8 years ago

@derKuba Thanks for the issue! If you're reporting a bug, please be sure to include:

jonschlinkert commented 8 years ago

Do you have any plans to update handlebars?

indeed we do, I am very close to pushing up the next version. I thought it would happen this past weekend. Any day now :)

jonschlinkert commented 8 years ago

to clarify - I'm going to try to update all of the "main" handlebars repos at once, including handlebars-helpers. So we can get all of them synced up for grunt users and assemble ^0.6 users

derKuba commented 8 years ago

Thank's a lot. this would help our project very much!

derKuba commented 8 years ago

Hi, do you have any updates or any information about this issue?

jonschlinkert commented 8 years ago

No, sorry now that you asked, I didn't realize you had an issue with something that isn't supported here yet. Closing since we haven't updated to use 4.0 yet.

pr welcome to update to 4.0, including unit tests