adding docs about distinction between two and three curly braces for action variable interpolation (#87302) (#87307)

This commit is contained in:
Bill McConaghy 2021-01-05 10:01:09 -05:00 committed by GitHub
parent 4d9c635960
commit 52c963201e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ Each action type exposes different properties. For example an email action allow
[role="screenshot"]
image::images/alert-flyout-action-details.png[UI for defining an email action]
Using the https://mustache.github.io/[Mustache] template syntax `{{variable name}}`, you can pass alert values at the time a condition is detected to an action. Available variables differ by alert type, and a list can be accessed using the "add variable" button.
Using the https://mustache.github.io/[Mustache] template syntax `{{variable name}}`, you can pass alert values at the time a condition is detected to an action. Note that using two curly braces will escape any HTML. Should you need to preserve HTML, use three curly braces (`{{{`). Available variables differ by alert type, and a list can be accessed using the "add variable" button.
[role="screenshot"]
image::images/alert-flyout-action-variables.png[Passing alert values to an action]