?
This document uses PHP Chinese website manual Release
Literal tags allow a block of data to be taken literally, not being interpreted by the Smarty engine. This is handy for things like javascript sections, where there maybe curly braces and such things that would confuse the template parser. Anything within {literal}{/literal} tags is not interpreted, but displayed as-is.
Literal 標簽區(qū)域內(nèi)的數(shù)據(jù)將被當作文本處理,此時模板將忽略其內(nèi)部的所有字符信息. 該特性用于顯示有可能包含大括號等字符信息的 javascript 腳本. 當這些信息處于 {literal}{/literal} 標簽中時,模板引擎將不分析它們,而直接顯示.
Example 7-13. literal tags
|