Test Myth TPL -TEST-VERSION-1-2-3-


Variables

Variable: Hello World!

Init Variable

Show Variable 10

Modifier 12

Cascade Modifier 5

Scoping (object) Myth

Scoping (array) Monday

Variable as key Thursday

Var test Hello World!


String test 2100-03-14

num1 is in wanted values
String test 2 2100-03-14 15:52:02

String test 2 Y-m-d H:i:s

Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!

Ternary Operator

The title is: Myth TPL - Easy and Fast template engine

Loop

Simple Loop

Modifier on Loop

Simple Nested Loop

Loop on created array

Loop on empty array

If

True condition: This is true

Modifier inside if: True

Function test

Function with parameters: 14-03-2100

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 with autoescape

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

Escape variable with modifiers

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

More modifier examples

This Is A String I╲⟍⎝╲༼◕ ◕ ༽╱⎠⟋╱i

{php} Tag status: disabled