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