Add 'templateName' support for routes