uses the string correctly rather than writing to a tempfile and passing to Template