w3-tools.com - Free Webmaster Tools and Resources
 
w3-tools.com - Free Webmaster Tools and Resources
 Free Webmaster Tools and Resources

 



Smarty Manual

This manual is provided as a courtesy. It is not an official source. Please check smarty.php.net for updated information.

Smarty Manual

Smarty Manual

{ldelim},{rdelim}

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

Example 7-15. {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!

Another example with some javascript

<script language="JavaScript">
function foo() {ldelim}
    ... code ...
{rdelim}
</script>

will output

<script language="JavaScript">
function foo() {
    .... code ...
}
</script>

See also Escaping Smarty Parsing

Newsletter

Join to our newsletter and receive news and updates about our site.
Your name: 
E-mail address: 
Action: 
 

Hosted by

Search

Google
Web w3-tools.com

Links

  What is my IP? Find your IP address!     Valid XHTML 1.0 Transitional  
Copyright © 2006. by w3-tools.com. All rights reserved