Updated all templates to use the var function instead of cgi- variables.