var context = {title: "My New Post", body: "This is my first post!"}
var html = template(context);
<div class="entry">
<h1>My New Post</h1>
<div class="body">
This is my first post!
</div>
</div>
data Pass in an object to define custom @variable private variables. helpers Pass in to provide custom helpers in addition to the globally defined helpers. partials Pass in to provide custom partials in addition to the globally defined partials.
© 2011–2017 by Yehuda Katz
Licensed under the MIT License.
https://handlebarsjs.com/execution.html