You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求识别邮件中使用的标记语言(附代码示例)

Identified Template Language: Liquid

Hey there! Looking at the code snippet you shared, this is Liquid—a flexible template language originally built by Shopify, and now widely adopted across email marketing platforms (like Klaviyo, which commonly uses functions like api_trigger_properties and abort_message seen here) and e-commerce tools.

Here’s how you can spot it’s Liquid:

  • Control flow tags: The {% ... %} blocks are Liquid’s signature for logic handling. In your code, {% assign %}, {% if %}, and {% abort_message %} are all standard Liquid constructs—used to set variables, run conditionals, and halt execution with an error respectively.
  • Output interpolation: The {{ merge_vars.shipping_estimation }} syntax is Liquid’s way of inserting dynamic values directly into the text content.
  • Filter usage: The | json_parse part is a Liquid filter, which takes the raw api_trigger_properties data and converts it into a workable object so the template can access its properties like order or shipping_estimation.

To break down what the code does:

  1. It parses incoming API trigger properties into a usable merge_vars object.
  2. It checks if the order property exists in those variables—if not, it aborts and sends an error message.
  3. If all is good, it renders a delivery tracking message with the estimated shipping window pulled from merge_vars.shipping_estimation.

内容的提问来源于stack exchange,提问作者user1427008

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 07:07:53