Citation:
Syntaxe du modèle:
Insertion d'une variables <?=$variable?>
Bloc: <?php foreach ($variables as $variable): ?> ... <?php endforeach; ?>
Ou: <?php foreach ($variables as $variable) { ?> ... <?php } ?>
Conditions: <?php if (condition): ?> ... <?php endif; ?>
Ou: <?php if (condition) { ?> ... <?php } ?>
etc...
La syntaxe n'est finalement pas plus complexe que celle de la plupart des moteurs de templates, un peu plus lourde c'est vrai, mais comme le dit l'auteur:
Citation:
In fact, PHP code is just as simple (if not more so) as the syntax of the more advanced template engines (such as Smarty). Also, you can use PHP short-hand like this: <?=$var;?>. Honestly, is that any more complex than {$var}? Sure, it's a few characters shorter, but if you can get used to it, you get all the power of PHP without all the overhead of parsing a template file.