Just looking at this, I think it would make sense to instead fallback to the default compilation in cases where the route name is dynamic.

We could add some sort ``isHandled(\Twig_Node $node)`` function to the FunctionCompilerInterface. What do you think?