blob: 920ed71abf7be50d263df2359042128c50a82af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Testing statement blocks.
-- Expect stdout --
The result of 3 * 7 is 21.
A statement block may contain multiple statements: Hello World
To escape the start tag, output it as string expression: {%
Alternatively print it: {%
-- End --
-- Testcase --
The result of 3 * 7 is {%+ print(3 * 7) %}.
A statement block may contain multiple statements: {%+
print("Hello ");
print("World");
%}
To escape the start tag, output it as string expression: {{ "{%" }}
Alternatively print it: {%+ print("{%") %}
-- End --
|