📜  包括片段 shopify - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:40.385000             🧑  作者: Mango

代码示例1
First, add your snippet file to the 'snippets' directory, then 
you can include the snippet into other files by using:

{% include 'snippet-file-name' %}

For example, if your snippet file is located here:
/snippets/my-snippet-file.liquid then you would include
it like this: 

{% include 'my-snippet-file' %}