If my list is empty, I want to output this:
If my list i
You could use non-false values of a section. name
would have to be an object inside of items
data = { 'items' : { 'name' : ["Item 1", "Item 2", "etc"] } };
You template would look like:
{{#items}}
{{#name}}
- {{.}}
{{/name}}
{{/items}}
Here's an example on jsFiddle showing the rendering of an items
object with names and without -- http://jsfiddle.net/maxbeatty/fpQwk/