You could set your array as a property of a wrapper object when calling the template.
For example, with objects
as the holding property
var an_array = [
{name: "My name"},
{name: "Another name"}
];
var source = /* a template source*/;
var template = Handlebars.compile(source);
var wrapper = {objects: an_array};
console.log(template(wrapper));
and your template can use this property as follows:
<ul>
{{#each objects}}
<li>{{name}}</li>
{{/each}}
</ul>
And a demo http://jsfiddle.net/YuvNY/1/
var an_array=[
{name:"My name"},
{name:"Another name"},
];
var source = $("#src").html();
var template = Handlebars.compile(source);
$("body").append( template({objects:an_array}) );
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v2.0.0.js"></script>
<script type='text/template' id='src'>
<ul>
{{#each objects}}
<li>{{name}}</li>
{{/each}}
</ul>
</script>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…