Finally, I'll create a context. The context has one property called color, which is blue. And then I'll get the HTML by calling the template method with the context as a parameter. And then I'll take this resulting HTML and append it to the body using jQuery. Over in the browser, I can see that blue is rendered onto the page. And we can see that the HTML that was produced is our original Handlebars expression interpolated with the blue value of our context object.
But it'd be sort of annoying if we always had to assign are templates to a variable as a string. So, there's a better way. What we can do is, directly in our HTML page, we can include a script tag. We'll give it an ID so we can reference it later. And a type of text x-handlebars-template. And within the script tag, we can put our Handlebars template.