Adds variable to template