Templating Techniques for Scenarios
Handle data like a pro π§ββοΈ
Escaping special characters
{β{#escape}β}{β{name}β}{β{/escape}β}
// if {{name}} is 'aaaa"aaaa', this operator will add
// a backslash before each special character for escaping them.
// The result of templating will be: 'aaaa\"aaaa'Removing line breaks
{{#stripNewLine}β}this new
line{β{/stripNewLine}}
// operator removes line breaks
// result of templating will be: 'this new line'Escaping line breaks (useful for JSONs)
//{{json}} is a field value with multiline json
//body of the http-request:
{"key":"{{#escape}}{{#escapeNewLine}}{{json}}{{/escapeNewLine}}{{/escape}}"}Replace "β'
"β'Encode URI
Decode URI
Convert to JS-multiline
Escape JSON
Formatting date
Handling boolean properties
Nesting arrays of linked objects
Handling arrays
Handling JSON
JSON templating
JSON as a JS object
Lodash for JSON parsing
Using now, today, +/β days
Using Lodash
Last updated
Was this helpful?