blob: 4c64ca2e335a9930477c95c6184d77c22d7f53a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{{ tuple.0 }}
{{ tuple .1 }}
{{ tuple. 2 }}
{{ tuple . 3 }}
{% let ( t0 , t1 , t2 , t3 , ) = tuple %}
{{ string }}
{{ string.len( ) }}
{{ string . len () }}
{{ string . len () }}
{{ string. len () }}
{{ string . len ( ) }}
{{ nested_1 . nested_2 . array [0] }}
{{ nested_1 .nested_2. array [ 1 ] }}
{{ nested_1 .nested_2. hash [ "key" ] }}
{% let array = nested_1.nested_2.array %}
{#
{% let array = nested_1.nested_2.array %}
{% let array = nested_1 . nested_2 . array %}
#}
{#
{% let hash = &nested_1.nested_2.hash %}
#}
{{ array| json }}
{{ array[..]| json }}{{ array [ .. ]| json }}
{{ array[1..2]| json }}{{ array [ 1 .. 2 ]| json }}
{{ array[1..=2]| json }}{{ array [ 1 ..= 2 ]| json }}
{{ array[(0+1)..(3-1)]| json }}{{ array [ ( 0 + 1 ) .. ( 3 - 1 ) ]| json }}
{{-1}}{{ -1 }}{{ - 1 }}
{{1+2}}{{ 1+2 }}{{ 1 +2 }}{{ 1+ 2 }} {{ 1 + 2 }}
{{1*2}}{{ 1*2 }}{{ 1 *2 }}{{ 1* 2 }} {{ 1 * 2 }}
{{1&2}}{{ 1&2 }}{{ 1 &2 }}{{ 1& 2 }} {{ 1 & 2 }}
{{1|2}}{{ 1|2 }}{{ 1 |2 }}{{ 1| 2 }} {{ 1 | 2 }}
{{true}}{{false}}
{{!true}}{{ !true }}{{ ! true }}
{#
{{true&&false}}{{ true&&false }}{{ true &&false }}{{ true&& false }} {{ true && false }}
{{true||false}}{{ true||false }}{{ true ||false }}{{ true|| false }} {{ true || false }}
#}
{{ self.f0() }}{{ self.f0 () }}{{ self.f0 ( ) }}
{{ self.f1("1") }}{{ self.f1 ( "1" ) }}{{ self.f1 ( "1" ) }}
{{ self.f2("1","2") }}{{ self.f2 ( "1" ,"2" ) }}{{ self.f2 ( "1" , "2" ) }}
{% for s in 0..5 %}{% endfor %}
{% for s in 0 .. 5 %}{% endfor %}
{% match option %}
{% when Option :: Some with ( option ) %}
{% when std :: option :: Option :: None %}
{% endmatch %}
{{ std::string::String::new () }}
{#
{{ ::std::string::String::new () }}
#}
|