jquery-tmpl
jquery-tmpl copied to clipboard
Clean empty arrays
{{if}} should return false on empty arrays and arrays with empty strings.
This isn't how javascript evaluates them. Boolean({}) === true Boolean([])=== true You can always do
{{if array.length }}
{{/if}
Or just use a {{each array}} statement.
As for the second part, I'm not sure what you're getting at or why you'd want it.
Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.