What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
{ldelim} y {rdelim} son usados para escapar delimitadores en el template, en nuestro caso "{" or "}". Usted puede usar solo {literal}{/literal} para escapar bloques de texto. Vea tambien {$smarty.ldelim}.
Example 7.14. {ldelim}, {rdelim}
{* Esto mostrara los delimitadores del template *} {ldelim}funcname{rdelim} is how functions look in Smarty!
La salida del ejemplo de arriba:
{funcname} is how functions look in Smarty!
Otros ejemplos con algunos javascript
<script language="JavaScript"> function foo() {ldelim} ... code ... {rdelim} </script>
esta es la salida
<script language="JavaScript"> function foo() { .... code ... } </script>
Vea también Escaping Smarty Parsing