ldelim e rdelim si usano per fare l'escape dei delimitatori del template, nel nostro caso "{" o "}". Potete usare anche {literal}{/literal} per fare l'escape su blocchi di testo. Vedere anche {$smarty.ldelim} e {$smarty.rdelim}
Example 7.12. ldelim, rdelim
{* questo stamperà i delimitatori *} {ldelim}funcname{rdelim} is how functions look in Smarty!
L'esempio sopra produrrà:
{funcname} is how functions look in Smarty!
Comments