Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Jun 29, 2016

Backport of #18856 on 2.4

@tlrx tlrx added >enhancement review :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v2.4.0 labels Jun 29, 2016
@spinscale
Copy link
Contributor

LGTM

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 elastic#18970, elastic#19119
@tlrx tlrx force-pushed the add-mustache-utils-functions-on-2.4 branch from fd2b930 to 6ed1331 Compare June 30, 2016 07:10
@tlrx tlrx merged commit 6ed1331 into elastic:2.4 Jun 30, 2016
@tlrx tlrx removed the review label Jun 30, 2016
@tlrx
Copy link
Member Author

tlrx commented Jun 30, 2016

Thanks @spinscale

@tlrx tlrx deleted the add-mustache-utils-functions-on-2.4 branch June 30, 2016 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement v2.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants