Is there a way in Handlebars.js templating to check if the collection or list is null or empty, before going and iterating through the list/collection?
// if list is empty do some rendering ... otherwise do the normal
{{#list items}}
{{/list}}
{{#each items}}
{{/each}}
` tag once and an `- ` tag for each item in the list. If the list is empty I don't even want the `
– Fuad Saud Mar 24 '15 at 23:18` to render, and rendering something else like `
empty list
` inside the `
` doesn't make sense.