blob: faafd9a936f2ed3b63b4413459f181bf26bcd66f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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 --
|