add convenience param to add data when rendering template