Ignorare il codice
Il codice può essere ignorato racchiudendolo tra tag djlint:
Per il semplice HTML:
<!-- djlint:off -->
<bad html to ignore>
<!-- djlint:on -->
oppure come commento:
{# djlint:off #}
<bad html to ignore>
{# djlint:on #}
oppure come commento lungo:
{% comment %} djlint:off {% endcomment %}
<bad html to ignore>
{% comment %} djlint:on {% endcomment %}
oppure come commento in stile golang:
{{ /* djlint:off */ }}
<bad html to ignore>
{{ /* djlint:on */ }}
oppure come commento in stile handlebars:
{{!-- djlint:off --}}
<bad html to ignore>
{{!-- djlint:on --}}
Ignorare le regole
Si possono ignorare anche specifiche regole del linter aggiungendo il nome della regola al tag di apertura del blocco ignorato.
{# djlint:off H025,H026 #}
<p>
{# djlint:on #}
<!-- djlint:off H025-->
<p>
<!-- djlint:on -->
{% comment %} djlint:off H025 {% endcomment %}
<p>
{% comment %} djlint:on {% endcomment %}
{{!-- djlint:off H025 --}}
<p>
{{!-- djlint:on --}}
{{ /* djlint:off H025 */ }}
<p>
{{ /* djlint:on */ }}