mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
add is_routingvar wrapper
This commit is contained in:
parent
0d870770f2
commit
1c6225e057
1 changed files with 11 additions and 0 deletions
|
@ -91,6 +91,17 @@ PIKEFUN string psyc_text(string template, mapping vars) {
|
|||
} while (ret == PSYC_TEXT_INCOMPLETE);
|
||||
}
|
||||
|
||||
/*! @decl string is_routingvar(string name)
|
||||
*! @param name
|
||||
*! name of the variable
|
||||
*! @returns
|
||||
*! 1 if it is a routing variable
|
||||
*! 0 otherwise
|
||||
*/
|
||||
PIKEFUN int is_routingvar(string name) {
|
||||
RETURN psyc_isRoutingVar2((char *) STR0(name), name->len);
|
||||
}
|
||||
|
||||
/*! @decl string render(mapping rvars, mapping evars, string method, string|void body)
|
||||
*! @param rvars
|
||||
*! routing vars (mapping string:string)
|
||||
|
|
Loading…
Reference in a new issue