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

Modifier on Loop

Simple Nested Loop

Loop on created array

If

True condition: This is true

Modifier inside if: True

Function test

Simple function: 1715102784

Function with parameters: 07-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 always enabled");</script>

Custom tag

Translate: message to translate

Custom tag 2

Translate: message to translate in english

Escape variable

<script>alert('evil javascript here');</script>