山魈不解析我的车把

Mandrill not parsing my handlebars

我有车把

{{#if imgLinkEncoded}}
<div> some content </div>
{{/if}}

我 API 调用 message/send-template。json

{
    "template_name": "Fluff Tuff 3",
    "template_content": [
        {
            "content": "",
            "name": ""
        }
    ],
    "global_merge_vars": [
        {
            "content": "bhhb",
            "name": "username"
        },
        {
            "content": "asdasd",
            "name": "imgLink"
        },
        {
            "content": "asdasd",
            "name": "imgLinkEncoded"
        }
    ],
    "message": {
        "to": [
            {
                "email": "asdad@gmail.com"
            }
        ],
        "images": [
            {
                "type": "image/jpeg",
                "name": "IMAGECID",
                "content":"adasdasda"
            }
        ],
     },
     "key": "asdasd"
}

API调用成功并发送邮件。永远不会显示依赖于车把 imgLinkEncoded 的划分。在一个地方,我也在打印 {{imgLinkEncoded}},这也没有显示,因此山魈无法识别我的变量。我还尝试了针对特定收件人的消息特定 merge_vars。那也行不通。

已解决。 global_merge_vars 必须在内部留言。