diff options
author | Zhidao HONG <z.hong@f5.com> | 2024-01-31 14:51:21 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2024-02-20 06:09:23 +0800 |
commit | 33c6c4d4c0e060a974791a472b739214366dead6 (patch) | |
tree | fd754daca475f3c13af4a3420ee657d7f63afaba /pkg | |
parent | 63ad4deb8a9a7955c5eec3098a2acc3e149831c7 (diff) | |
download | unit-33c6c4d4c0e060a974791a472b739214366dead6.tar.gz unit-33c6c4d4c0e060a974791a472b739214366dead6.tar.bz2 |
NJS: variable access support
This commit introduces the 'vars' JavaScript object to NJS,
enabling direct access to native variables such as $uri and $arg_foo.
The syntax is `${vars.var_name}` or `${'vars[var_name]'}`.
For example:
{
"action": {
"share": "`/www/html${vars.uri}`"
}
}
Diffstat (limited to 'pkg')
0 files changed, 0 insertions, 0 deletions