Marker-TPL, a powerful and secure Templating Engine:

      Marker-TPL Templating Demo
[%%%IF:TPL-ALT-AVAIL:==yes;%%%]
As an alternative to the Marker-TPL Templating Engine syntax (built-in, default) it is possible to use alternatives: Twist Templating Engine (Twig like Grammar but much safer, implementing Liquid like Safety) syntax to render Views of Smart.Framework by using the Smart.Framework.Module: mod-tpl-twist or is possible to use Twig Templating Engine syntax to render Views of Smart.Framework by using the Smart.Framework.Module: mod-tpl-twig.
And as a premium feature you can use the flavoured XML DOM parser based Typo3-Fluid Templating Engine syntax (which is available in Smart.Framework.Modules: mod-tpl-typo3-fluid).
If you are not satisfied with any of these you can create new custom Smart.Framework.Modules to integrate other TPL engines such as Smarty or PHP Plates for use with Smart.Framework.
    [%%%IF:TPL-TWIST-AVAIL:==yes;%%%]   Twist Templating Demo (extra modules)
[%%%/IF:TPL-TWIST-AVAIL%%%] [%%%IF:TPL-TWIG-AVAIL:==yes;%%%]   Twig Templating Demo (extra modules)
[%%%/IF:TPL-TWIG-AVAIL%%%] [%%%IF:TPL-TYPO3FLUID-AVAIL:==yes;%%%]   Typo3-Fluid Templating Demo (extra modules)
[%%%/IF:TPL-TYPO3FLUID-AVAIL%%%]
[%%%/IF:TPL-ALT-AVAIL%%%]
Marker-TPL Templating Engine is a very fast and 100% secure [*] PHP Templating Engine and is available for both PHP and Javascript [**] languages.
Because the Marker-TPL Templating is rendering the Views by injecting plain strings and data arrays directly into these Views (no re-interpreted PHP/Javascript code) there are NO SECURITY RISKS like injecting malicious code into the Views like in the case of using the Twig Templating for PHP or Smarty Templating for PHP. The original concept of Marker-TPL Templating was inspired by simplistic mark(er)s used in templates by Typo3 CMS. Thereafter, a full new concept was developed from the scratch into Smart.Framework based on this idea as a brand new TPL engine: Marker-TPL.
The Marker-TPL Templating Engine, built into Smart.Framework begins by using markers that have a start [ and stop ] limits and marking variables are enclosed in 3 # # #. At the very begining the full escaping syntax was developed for these markers to escape: html, js, url, json, ... and more ... was added a support for loading SUB-TEMPLATES files. Later the support for IF / ELSE, LOOP, SPECIAL CHARACTERS and COMMENTS syntax was finalizing this concept.
Currently the TPL Marker Syntax Templating Engine for PHP (and TPL Marker Syntax Templating Engine for Javascript [**]) is a mature project, fully developed and maintained inside the code base of Smart.Framework. It is heavily tested in production on web servers serving million+ page views / day.

[###HTML-SYNTAX-DESCR###]

[%%%LOOP:LOOPTEST-VAR1%%%] [%%%IF:IF2TEST:!=5;%%%] [%%%ELSE:IF2TEST%%%] [%%%/IF:IF2TEST%%%] [%%%/LOOP:LOOPTEST-VAR1%%%]
TPL Render Test: Marker-TPL Templating - Basic Syntax
[###LOOPTEST-VAR1.D1|html###] [###LOOPTEST-VAR1.D2|html###] [###LOOPTEST-VAR1.D3|html###]
[%%%LOOP:LOOPTEST-VAR2%%%] [%%%IF:LOOPTEST-VAR2.C2:==a;%%%] [%%%IF:LOOPTEST-VAR2.C1:<1;%%%] [%%%ELSE:LOOPTEST-VAR2.C1%%%] [%%%/IF:LOOPTEST-VAR2.C1%%%] [%%%ELSE:LOOPTEST-VAR2.C2%%%] [%%%/IF:LOOPTEST-VAR2.C2%%%] [%%%/LOOP:LOOPTEST-VAR2%%%]
[###LOOPTEST-VAR2.C1|html###] [ < 1 ; C2 = a ][###LOOPTEST-VAR2.C1|html###] [ >= 1 ; C2 = a ][###LOOPTEST-VAR2.C1|html###][###LOOPTEST-VAR2.C2|js|html###] [###LOOPTEST-VAR2.C3|url|html###]
[###STR-NUM|num###] * [###NUM-NUM|num###] (Numeric Escape)