Adding variables into templates