diff options
Diffstat (limited to '')
-rw-r--r-- | testing/templates/let-shadow.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/templates/let-shadow.html b/testing/templates/let-shadow.html new file mode 100644 index 0000000..938c5bf --- /dev/null +++ b/testing/templates/let-shadow.html @@ -0,0 +1,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 }} |