template: $(‘#my-tpl’).html(), model: { hasTitle: true, title: ‘foo’, content: ‘bar’ } }); <script id=”my-tpl” type=”text/handlebars-template”> <div> {{#if hasTitle}} <h3>{{title}}</h3> {{/if}} <div>{{content}}</div> </div> </script> renderPartial(selector) Monday, September 17, 12