On 3/25/10 4:29 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
as it is now, does not change, the name of the variable is the name of the route, not the value of the variable.
daniel,
i still don't understand, but no matter what, there is a bug, because the route "test" was not executed and no error was produced. i opened a ticket on it.
based on what you say, looks i need to open also a feature request regarding pv argument support for route() function call.
Not every function, and mostly those in core, supports pseudo-variables. So whatever you give in between double quotes it is considered a static string. Like you get with:
log("$ru\n");
and it is a difference in the output of:
xlog("$ru\n");
I don't consder this is a bug, but something still to be developed. Have you tested with:
route[$var(test)] { ... }
route { route($var(test)); }
Is it working?
Daniel