Persist changes to a template