您如何在Liquid中注释掉? [英] How do you comment out in Liquid?
本文介绍了您如何在Liquid中注释掉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
用Liquid模板语言注释掉的正确方法是什么?
What is the correct way to comment out in the Liquid templating language?
推荐答案
在液体中,您可以使用{% comment %}
和{% endcomment %}
注释掉标签:
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 %}
这篇关于您如何在Liquid中注释掉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文