Add support for template route matching mode