ldelim,rdelim

ldelim and rdelim are used for escaping template delimiters, in our case "{" or "}". You can also use {literal}{/literal} to escape blocks of text. See also {$smarty.ldelim} and {$smarty.rdelim}

ldelim 與 rdelim 是用來作為樣版阻斷符號脫序的,在我們的範例中是 "{" 或 "}"。你也可以使用 {literal}{/literal} 將區塊中的文字脫序。請參閱 {$smarty.ldelim}{$smarty.rdelim}

Example 7-12. ldelim, rdelim

{* this will print literal delimiters out of the template *}

{ldelim}funcname{rdelim} is how functions look in Smarty!

The above example will output:

上面例子的輸出結果為:

{funcname} is how functions look in Smarty!