use handlebars to compile template