{ldelim},{rdelim}{ldelim} and {rdelim} are used for
escaping
template delimiters, by default
{ and }.
You can also use {literal}{/literal}
to escape blocks of text eg Javascript or CSS.
See also the complimentary {$smarty.ldelim}.
{ldelim}, {rdelim}
The above example will output:
Another example with some Javascript
function foo() {ldelim}
... code ...
{rdelim}
]]>
will output
function foo() {
.... code ...
}
]]>
Another Javascript example
function myJsFunction(){ldelim}
alert("The server name\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}");
{rdelim}
Click here for Server Info
]]>
See also
{literal}
and escaping Smarty parsing.