How does handlebars template get context

  node.js, question

var context = {title: “My New Post”, body: “This is my first post!” };
var html = template(context);
If you want to assign the content of a text file inside to chontext, how do you get the content of the text file inside?

According to your writing style, your handlebars are used at the front end. what is the content of your text file? If it is json, ajax is the most normal method.