Only stringifying contents if the data contains a template