Skip to content

Commit 1d2e444

Browse files
Fix liquid syntax errors. (#7785)
* Fix liquid syntax errors. Signed-off-by: Archer <naarcha@amazon.com> * Update render-template.md Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Update _api-reference/render-template.md Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Update _api-reference/render-template.md Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --------- Signed-off-by: Archer <naarcha@amazon.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
1 parent b2abf25 commit 1d2e444

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

_api-reference/render-template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Both of the following request examples use the search template with the template
4444
"source": {
4545
"query": {
4646
"match": {
47-
"play_name": "{{play_name}}"
47+
"play_name": "{% raw %}{{play_name}}{% endraw %}"
4848
}
4949
}
5050
},
@@ -76,11 +76,11 @@ If you don't want to use a saved template, or want to test a template before sav
7676
```
7777
{
7878
"source": {
79-
"from": "{{from}}{{^from}}10{{/from}}",
80-
"size": "{{size}}{{^size}}10{{/size}}",
79+
"from": "{% raw %}{{from}}{{^from}}0{{/from}}{% endraw %}",
80+
"size": "{% raw %}{{size}}{{^size}}10{{/size}}{% endraw %}",
8181
"query": {
8282
"match": {
83-
"play_name": "{{play_name}}"
83+
"play_name": "{% raw %}{{play_name}}{% endraw %}"
8484
}
8585
}
8686
},

0 commit comments

Comments
 (0)