Add variables to templates