Right, that is how I get it into the Template global, check the code for that above:
set Template(host) [string tolower [ns_set iget [ns_conn headers] host]]