Script Operations
script
Evaluates a program written in ECMA Script and returns the value returned by the last statement of the script. Here you can find the ECMA Script reference.
Arguments:
- :data*
- The script.
- ...
- Any number of arguments that will be accessible in the script (using same variable name as the argument name). Also, an array named __params, which contains the names of all arguments, can be used in the script. The arguments will be retrieved (i.e. required operations executed) if and when they are used by the script code.
template
Processes a template and returns the result. A template is a text with ECMA Script embedded using <% and %> (like ASP). In the script you can use the same variables as you would in script operation, plus the echo() function, which prints the given value.
Arguments:
- :data*
- The template.
- ...
- Any number of arguments (see script operation).