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:
Tag {literal} membolehkan blok data diambil secara literal. Ini biasanya dipakai sekitar blok Javascript atau stylesheet di mana {kurung kurawal} akan berpengaruh dengan sintaks pembatas template. Apapun di dalam tag {literal}{/literal} tidak diinterpretasikan, but displayed as-is. If you need template tags embedded in a {literal} block, consider using {ldelim}{rdelim} to escape the individual delimiters instead.
Teladan 7-27. Some css style in a template
|
See also {ldelim} {rdelim} and the escaping Smarty parsing page.