doc
Last updated View as Markdown
Use doc to document a snippet or a block. The content of a doc tag is not parsed or rendered, so you can put Liquid examples in it.
liquid
{% doc %}
Renders a product card.
@param {product} product - The product to show
@param {boolean} [show_vendor] - Whether to show the vendor
@example
{% render 'product-card', product: product %}
{% enddoc %}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
Output
html
1