Test Rain Tpl 3.0 Alpha
Variables
Variable: Hello World!
Init Variable
Show Variable 10
Modifier 12
Cascade Modifier 5
Scoping (object) Rain
Scoping (array) Monday
Variable as key Thursday
Var test Hello World!
Ternary Operator
The title is: Rain TPL 3 - Easy and Fast template engine
Loop
Simple Loop
-
0 Monday
-
1 Tuesday
-
2 Wednesday
-
3 Thursday
-
4 Friday
-
5 Saturday
-
6 Sunday
Modifier on Loop
- Sunday
- Saturday
- Friday
- Thursday
- Wednesday
- Tuesday
- Monday
Simple Nested Loop
Loop on created array
If
True condition: This is true
Modifier inside if: True
Function test
Simple function: 1715125500
Function with parameters: 08-05-2024
Static method: Hi I am a static method, and this is the parameter passed to me: 123test!
Escape Text
Malicious content: Hey this is a malicious XSS <script>alert('auto_escape is set enabled by default, so this script is escaped!');</script>
Custom tag
Translate: message to translate
Custom tag 2
Translate: message to translate in english
Escape variable