Sending template as well to make it easier on the server side