mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Standardize on js
for SCRIPT (#14652)
This has the add-on docs consistent with the main docs. Signed-off-by: Richard Koshak <rlkoshak@gmail.com>
This commit is contained in:
parent
a0f442e785
commit
7bddeb4a7f
@ -283,8 +283,8 @@ Use the `SCRIPT` transformation with JavaScript Scripting by:
|
||||
})(input);
|
||||
```
|
||||
|
||||
2. Using `SCRIPT(graaljs:<scriptname>.script):%s` as the transformation profile, e.g. on an Item.
|
||||
3. Passing parameters is also possible by using a URL like syntax: `SCRIPT(graaljs:<scriptname>.script?arg=value):%s`.
|
||||
2. Using `SCRIPT(js:<scriptname>.script):%s` as the transformation profile, e.g. on an Item.
|
||||
3. Passing parameters is also possible by using a URL like syntax: `SCRIPT(js:<scriptname>.script?arg=value):%s`.
|
||||
Parameters are injected into the script and can be referenced like variables.
|
||||
|
||||
## Standard Library
|
||||
|
Loading…
Reference in New Issue
Block a user