add Mojolicious::Plugin::AutoRoute::template function