I’m setting a data object on my page and using the handlebar syntax to output this into the HTML.
<div class="title">{{something.title}}</div>
<p>{{something.description}}</div>
<script>
return {
data: function () {
var something = { title: 'My Title', title: 'Lorem ipsum dolor sit amet consectetur adipiscing' }
return {
branch: branch,
}
}
}
</script>
Then if I later wanted to update the something object; is there a clever Template7 method I can call which would re-render where I referenced that object? … I know the following is not real code but is there anything that would achieve this without having to individually set the html content for each element?
updateSomething: function() {
Template7.render(this.something)
},