Marker-TPL, a powerful and secure Templating Engine: |
Marker-TPL Templating Demo |
|
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%%%] |
| TPL Render Test: Marker-TPL Templating - Basic Syntax | ||
|---|---|---|
| [###LOOPTEST-VAR1.D1|html###] | [###LOOPTEST-VAR1.D2|html###] | [###LOOPTEST-VAR1.D3|html###] |
| [###LOOPTEST-VAR2.C1|html###] [ < 1 ; C2 = a ] | [%%%ELSE:LOOPTEST-VAR2.C1%%%][###LOOPTEST-VAR2.C1|html###] [ >= 1 ; C2 = a ] | [%%%/IF:LOOPTEST-VAR2.C1%%%] [%%%ELSE:LOOPTEST-VAR2.C2%%%][###LOOPTEST-VAR2.C1|html###] | [%%%/IF:LOOPTEST-VAR2.C2%%%][###LOOPTEST-VAR2.C2|js|html###] | [###LOOPTEST-VAR2.C3|url|html###] |
| [###STR-NUM|num###] * [###NUM-NUM|num###] (Numeric Escape) |