Does the Mandrill Render API ignore merge_vars that map to Handlebars variables?

On the Mandrill Template API page, I connect the following JSON to validate the Render when I click "Try":

{ "key": "MY VALID KEY", "template_name": "test1", "template_content": [ ], "merge_vars": [ { "name": "invoice_number", "content": "1001" } ] } 

Test results are returned with my template, but the one merge_var tag that I tested was not combined, i.e. the result still contains {{invoice_number}} :

 { "html": "<p style=\"font-family: sans-serif;\">Dear Customer,</p>\r\n\r\n<p style=\"font-family: sans-serif;\">Invoice {{invoice_number}} ...</p>" } 

merge_vars Mandrill Render API ignore merge_vars that map to Handlebars variables?

+5
source share
1 answer

According to Mandrill support:

As you noticed, calling the rendering API is currently not supported in Handle Templates. Although I can’t provide an accurate ETA if the API call will work with Handlebars, I can tell you that our developers are working on it in the near future.

I would advise you to follow our Mandrill API Documentation as this support will be marked there as an additional parameter for the call as soon as it is supported.

+4
source

Source: https://habr.com/ru/post/1235644/


All Articles