What is the correct way to comment out in the Liquid templating language?
The HTML Comment Tag Comments in HTML start with <! -- and end with --> . Don't forget the exclamation mark at the start of the tag! But you don't need to add it at the end.
Liquid is an open-source template language created by Shopify. Liquid uses a combination of objects, tags, and filters inside template files to display dynamic content.
From the Shopify app, tap Store. In the Sales channels section, tap Online Store. Tap Blog posts. Tap the ⋮ button beside Blog posts, and then select Manage comments.
In Liquid you comment out using the {% comment %}
and {% endcomment %}
tags:
{% comment %} This is a comment in Liquid {% endcomment %}
It doesn't matter if the comment is inline or a block comment.
{% comment %} This is a block comment in Liquid {% endcomment %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With