Handles download by reading from a mustache template