引用官网介绍:
Liquid is an open-source, Ruby-based template language created by Shopify. It is the backbone of Shopify themes and is used to load dynamic content on storefronts. Liquid 由Shopify 创建,开源并且基于Ruby 的一种模板语言。
Liquid 使用Tags、Objects、Filters 来动态加载内容
Tags
通过标签实现逻辑编程,有效识别出语法内容
{% if user.name == ‘elvis’ %}
Hey Elvis
{% endif %}
Objects
通过对象将动态内容显示
{{ post.title }} Output: How to use Liquid