xxxxxxxxxx
// the following is how you can get the object from the backend in
// fontend in express-handlebars in the following example we have
// created an array of objects that we recieved from the backend.
<script>
var viewMarkers = [
{{#each viewModel}}
{
location: '{{location}}',
lat: {{lat}},
lng: {{lng}}
}
{{#unless @last}},{{/unless}}
{{/each}}
];
</script>