Update the data the template has access to.