el tag raw no soporta eliminar espacio alrededor

This commit is contained in:
f 2021-10-28 12:19:32 -03:00
parent 16a4226991
commit 25ffcd8ab9
8 changed files with 15 additions and 15 deletions

View file

@ -1,4 +1,4 @@
{%- raw -%}
{% raw %}
<div class="alert alert-{{ type }} alert-dismissible" role="alert">
{{ content }}
@ -6,4 +6,4 @@
<span aria-hidden="true">&times;</span>
</button>
</div>
{%- endraw -%}
{% endraw %}

View file

@ -1,4 +1,4 @@
{%- raw -%}
{% raw %}
{% for product in products %}
<div
class="border-bottom row no-gutters align-items-center justify-content-center mb-3 mb-md-0 pb-3 pb-md-0"
@ -64,4 +64,4 @@
</div>
</div>
{% endfor %}
{%- endraw -%}
{% endraw %}

View file

@ -1,4 +1,4 @@
{%- raw -%}
{% raw %}
<div>
<dl>
<dt>{{ site.confirmation.number }}</dt>
@ -64,4 +64,4 @@
</div>
</div>
</div>
{%- endraw -%}
{% endraw %}

View file

@ -1,4 +1,4 @@
{%- raw -%}
{% raw %}
<form id="coupon" data-controller="cart-coupon" data-action="cart-coupon#apply"></form>
<form
@ -61,4 +61,4 @@
</div>
</div>
</form>
{%- endraw -%}
{% endraw %}

View file

@ -1,4 +1,4 @@
{%- raw -%}
{% raw %}
<div class="alert alert-{{ type }} alert-dismissible" role="alert" data-controller="cart">
{{ content }}
@ -10,4 +10,4 @@
<span aria-hidden="true">&times;</span>
</button>
</div>
{%- endraw -%}
{% endraw %}

View file

@ -1,4 +1,4 @@
{%- raw -%}
{% raw %}
<section class="row no-gutters justify-content-center">
<div class="col-10">
{% for item in results %}
@ -16,4 +16,4 @@
{% endfor %}
</div>
</section>
{%- endraw -%}
{% endraw %}

View file

@ -1,4 +1,4 @@
{%- raw -%}
{% raw %}
<form
data-action="cart-shipping#payment"
data-target="cart-shipping.rates">
@ -35,4 +35,4 @@
</div>
</div>
</form>
{%- endraw -%}
{% endraw %}

2
env.js
View file

@ -32,7 +32,7 @@ window.site = {
Liquid dentro de assets/templates/ y luego las importamos acá, de forma
que estén disponibles para JS sin tener que descargarlas.
Es importante que la plantilla esté envuelta por el tag `{% raw %}`,
Es importante que la plantilla esté envuelta por el tag `raw`,
para que no sea procesado en el momento de generar env.js, sino en el
navegador.
{%- endcomment -%}