matched template and file names to route names