Switch to handlebars and add if condition support for templating