if we would return the route name, we could use the generator here. having the router in the document is not a good idea, and pre-evaluating the urls into the document is a bad thing as it will break when you adjust the route configuration.

btw, for cmf routes, the route "name" can actually be a Route object, the router simply handles that for you.