Home » U++ Library support » Skylark » witz - handler with variable parameter (Can witz handlers take non-constant parameters?)
witz - handler with variable parameter [message #54318] |
Tue, 23 June 2020 02:31  |
Lance
Messages: 656 Registered: March 2007
|
Contributor |
|
|
Say I have a handler
SKYLARK(Test,"test/**")
{
DUMP(http.GetParamCount());
http<<"number of param :"<<http.GetParamCount();
}
And in the witz, I want to use it with a parameter called 'p'
<a url=$Test($p,3,5,7)>A link</a>
Suppose the parameter "p" has been correctly passed to the witz before calling renderResults.
Above won't work. The generated url is 'test//3/5/7' with $p treated as undefined. Did I do anything wrong?
Thanks for your help!
|
|
|
Goto Forum:
Current Time: Sat May 10 19:37:47 CEST 2025
Total time taken to generate the page: 0.01023 seconds
|