...

Text file src/github.com/noirbizarre/gonja/ext/django/testData/statements/comment.tpl

Documentation: github.com/noirbizarre/gonja/ext/django/testData/statements

     1empty single line comment
     2{# #}
     3
     4filled single line comment
     5{# testing single line comment #}
     6
     7filled multilines comment
     8{# 
     9  testing single line comment
    10#}
    11
    12filled single line comment with valid tags
    13{# testing single line comment {% if thing %}{% endif %} #}
    14
    15filled single line comment with invalid tags
    16{# testing single line comment {% if thing %} #}
    17
    18filled single line comment with invalid syntax
    19{# testing single line comment {% if thing('') %}wow{% endif %} #}
    20
    21empty block comment
    22{% comment %}{% endcomment %}
    23
    24filled text single line block comment
    25{% comment %}filled block comment {% endcomment %}
    26
    27empty multi line block comment
    28{% comment %}
    29
    30
    31{% endcomment %}
    32
    33block comment with other tags inside of it
    34{% comment %}
    35  {{ thing_goes_here }}
    36  {% if stuff %}do stuff{% endif %}
    37{% endcomment %}
    38
    39block comment with invalid tags inside of it
    40{% comment %}
    41  {% if thing %}
    42{% endcomment %}
    43
    44block comment with invalid syntax inside of it
    45{% comment %}
    46  {% thing('') %}
    47{% endcomment %}
    48
    49Regular tags between comments to verify it doesn't break in the lexer
    50{% if hello %}
    51{% endif %}
    52after if
    53{% comment %}All done{% endcomment %}
    54
    55end of file

View as plain text