template_names should really be tmpl_names and should be in tmpl.c