I have a fairly basic question. I have a watcher, I load a html template using a http input. I want to use this template (which contains mustache syntax) in my action. Is it possible? At the moment I just get the html without the mustache functionality applied. Using Elasticsearch 5.6.
This is how the email action looks like below. My idea was that the params option would enable me to use {{#hits}}... in my external template but it didn't work.
"body": {
"html": {
"source": "{{ctx.payload.template._value}}",
"lang": "mustache",
"params": {
"hits": "{{ctx.payload.query.hits.hits}}"
}
}
}
But yea, feels like a step missing 