Returns a promise with a rendered handlebars file or renders template to a file