Mustache and Handlebars
iHub cloud used https://handlebarsjs.com/ as template language.
This is an extension to Mustache and have few smart functions.
Smart functions
| Creates a csv of the array. Based on a payload like this [
{"name":"Peter"},
{"name":"Rickard"}
] |
{{ | Runs example and object like this Example sending full issue as json {
"issue":{{{toJSON issue}}}
} |
| This mustache function is a special one used mainly to insert flow variables into the output object. The output object is any object in the scope, usually payload or scope.something
|
See all helpers | Handlebars is extended with all the helpers in the link |
Array helpers
| https://github.com/helpers/handlebars-helpers?tab=readme-ov-file#array |
See all Math functions
|
|
See all Dates functions |
|
| This function returns the content of a element. It return the whole child element back, like the example below |
| This function returns the content of a element. Example if we have a parent that has this soap response `
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:NumberToWordsResponse xmlns:m="http://www.dataaccess.com/webservicesserver/">
<m:NumberToWordsResult>five million seven hundred and ninety four thousand two hundred and fifty nine </m:NumberToWordsResult>
</m:NumberToWordsResponse>
</soap:Body>
</soap:Envelope>` Then we can use the below syntax to pick the value “five million seven hundred and ninety four thousand two hundred and fifty nine”
Lets break it down;
|