Use Handlebars templates and hbsfy to precompile