Make a template router