Switch to Handlebars and pre-compile templates