...

Text file src/github.com/noirbizarre/gonja/testData/whitespaces/source.tpl

Documentation: github.com/noirbizarre/gonja/testData/whitespaces

     1Standard whitespace control:
     2{% if true %}
     3Standard whitespace control
     4{% endif %}
     5
     6Full Trim whitespace control:
     7{% if true -%}
     8Full Trim whitespace control
     9{%- endif %}
    10
    11Useful with logic:
    12{%- if false %}
    131st choice
    14{%- elif false %}
    152nd choice
    16{%- elif true %}
    173rd choice
    18{%- endif %}
    19
    20Cycle without whitespace control:
    21{% for i in simple.multiple_item_list %}
    22{{ i }}
    23{% endfor %}
    24
    25Cycle with whitespace control:
    26{% for i in simple.multiple_item_list %}
    27{{- i }}
    28{% endfor %}
    29
    30Trim everything:
    31{% for i in simple.multiple_item_list -%}
    32{{ i }}
    33{%- endfor %}
    34!
    35    {% if true %}LStrip ?{% endif %}
    36!   {% if true %}LStrip with char?{% endif %}
    37!
    38    {%+ if true %}Manully Disabled LStrip{% endif %}
    39!   {%+ if true %}Manully Disabled LStrip{% endif %}
    40---
    41
    42

View as plain text