0

I've a JSON string like

{
    "2013": [{
        "01": {.... },
        "01": {.....},
        "02": {.....}
    }]
}

I've a template like this

<script id="thumbnail" type="text/x-handlebars-template">
    {{#2013}}
        <div>Content</div>  
    {{/2013}}           
</script>

But this wouldn't work as the block to loop is like {{#2013}}. If I change it to some string, like {{#thumbnails}}, it works perfectly.

Is there a work around keeping the JSON as it is?

ptamzz
  • 9,235
  • 31
  • 91
  • 147