[minor] replace handlebars logic with hbsfy transform