Compile handlebars templates with helpers and dynamic contexts