¿Cómo se comenta en Liquid?
¿Cuál es la forma correcta de comentar en el lenguaje de plantillas Liquid?
37
Author: Martin Buberl, 2014-11-19
3 answers
En Liquid {[6] } comentas usando las etiquetas {% comment %}
y {% endcomment %}
:
{% comment %} This is a comment in Liquid {% endcomment %}
No importa si el comentario está en línea o en bloque.
{% comment %}
This is a block comment in Liquid
{% endcomment %}
73
Author: Martin Buberl,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-19 01:21:18
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-19 01:21:18
En el líquido, usando la etiqueta de comentario encierre el texto a comentar dentro de la etiqueta de comentario
{%comment%}
Text to be commented
{%endcomment%}
0
Author: MANIDEEP PADUCHURI,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-11 07:29:26
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-11 07:29:26
Liquid le permite dejar código no renderizado dentro de una plantilla Liquid utilizando las etiquetas {% comment %}
y {% endcomment %}
.
Entrada:
Anything you put between {% comment %} and {% endcomment %} tags
is turned into a comment.
Salida:
Anything you put between tags
is turned into a comment.
Enlace de Referencia: http://shopify.github.io/liquid/tags/comment/
0
Author: okconfused,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-03 12:24:49
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-07-03 12:24:49