OpenSearch/modules/lang-mustache
Tanguy Leroux 4820d49120 Mustache: Add util functions to render JSON and join array values
This pull request adds two util functions to the Mustache templating engine:
- {{#toJson}}my_map{{/toJson}} to render a Map parameter as a JSON string
- {{#join}}my_iterable{{/join}} to render any iterable (including arrays) as a comma separated list of values like `1, 2, 3`. It's also possible de change the default delimiter (comma) to something else.

closes #18970
2016-06-29 09:48:58 +02:00
..
licenses get gradle check passing for lang-mustache 2015-12-09 00:10:37 -05:00
src Mustache: Add util functions to render JSON and join array values 2016-06-29 09:48:58 +02:00
build.gradle Move templates out of the Search API, into lang-mustache module 2016-06-23 09:30:53 +02:00