aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/let-shadow.html
blob: 938c5bfed7ce0c60463b02e82bf9eb8b1088c2ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{%- let a = 1 -%}
{%- let b -%}

{%- if cond -%}
    {%- let b = 22 -%}
    {{ b }}-

    {%- let b = 33 -%}
    {{ a }}-{{ b }}-
{%- else -%}
    {%- let b = 222 -%}
    {{ b }}-

    {%- let b = 333 -%}
    {{ a }}-{{ b }}-

    {%- let (a, b) = Self::tuple() -%}
    {{ a }}-{{ b }}-
{%- endif -%}

{%- let a = 11 -%}
{{ a }}-{{ b }}