<script>
// Create a JSON object with the page's content
var data = {
nav: [
{
url: "/",
title: "Home",
class: "home"
}, {
url: "work/",
title: "My work",
class: "work"
}
]};
// Pass the JSON object to your content.handlebars template
var pageContent = Handlebars.templates.content(data);
// Append the page content to the body element
$('body').append(pageContent);
</script>
Alternatives
issue: use metadata in handlebars helper functions moremeta (i.e. in this example)