Converted to Swig from handlebars