{"category":"text","endpoint":"https://setget.net/v1/tools/template-render","examples":[{"input":{"data":{"items":[{"price":3,"title":"Tea"},{"price":4.5,"title":"Cake"}],"name":"Sam & Co"},"template":"Hello {{name}}!\n{{#items}}\n- {{title}} ({{price}})\n{{/items}}\n{{^items}}\nNothing here.\n{{/items}}"},"output":{"text":"Hello Sam &amp; Co!\n- Tea (3)\n- Cake (4.5)\n"}},{"input":{"data":{"html":"<b>3</b>","user":{"name":"Ada"}},"template":"{{user.name}} wrote {{{html}}}{{! not shown }}"},"output":{"text":"Ada wrote <b>3</b>"},"title":"Dotted names, raw output and a comment"},{"input":{"data":{"tags":["a","b"]},"template":"{{#tags}}[{{.}}]{{/tags}}"},"output":{"text":"[a][b]"},"title":"A list of plain values"}],"input_schema":{"additionalProperties":false,"properties":{"data":{"description":"The values to fill in, as a JSON object.","examples":[{"items":[{"price":3,"title":"Tea"}],"name":"Sam"}]},"escape":{"default":true,"description":"HTML-escape {{name}} values. {{{name}}} is never escaped.","type":"boolean"},"template":{"description":"The template text.","examples":["Hello {{name}}!\n{{#items}}\n- {{title}} ({{price}})\n{{/items}}"],"type":"string"}},"required":["template","data"],"type":"object"},"keywords":["template","mustache","handlebars","render template","mail merge","placeholders","fill in template","string interpolation"],"related":["find-replace","json-format","escape-unescape"],"slug":"template-render","summary":"Fill a Mustache-style template with JSON data: {{name}} values, {{#list}} loops and {{^empty}} fallbacks.","tier":"inline","title":"Template renderer","url":"https://setget.net/tools/template-render"}
