cowboyd / handlebars.rb

Ruby Bindings for Handlebars.js
http://www.handlebarsjs.com
160 stars 68 forks source link

Cannot get count of an array in template #40

Open lyahdav opened 8 years ago

lyahdav commented 8 years ago

I have a template with the expression {{#if array.count > 0}} but it always evaluates to true. {{ array.count}} seems to evaluate to empty. I also tried array.length but same result.