-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty array evals to false #107
Comments
Would be a breaking change then, by the way. Most usages currently use |
This was explicitly chosen to be the case for backwards compatibility. The behavior is documented. Why specifically do you want it changed? |
It is confusing because |
Yes JS does it differently. But the templates are a different language (even if they do compile to JS). Do you have any use cases where this makes a difference? |
I ran into it while working on browsing users https://github.com/barisusakli/nodebb-plugin-browsing-users/blob/master/index.js#L39 I just set it to true now and the template doesnt render anything with {{{ each browsingUsers }}}. Before that it was |
This should be on the readme in bold if we are not fixing this 😆 |
I think should eval to true like javascript
The text was updated successfully, but these errors were encountered: