Update template variable.