?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
All Smarty template tags are enclosed within delimiters. By default, these delimiters are { and }, but they can be changed.
所有的smarty模板標(biāo)簽都被加上了定界符.
默認(rèn)情況下是 { 和},但它們是可被改變的.
For these examples, we will assume that you are using the default delimiters. In Smarty, all content outside of delimiters is displayed as static content, or unchanged. When Smarty encounters template tags, it attempts to interpret them, and displays the appropriate output in their place.
例如,我們假定你在使用默認(rèn)定界符.
在smarty里,所有定界符以外的內(nèi)容都是靜態(tài)輸出的,或者稱之為不可改變.
當(dāng)smarty遇到了模板標(biāo)簽,將嘗試解釋他們,然后再以恰當(dāng)?shù)姆绞捷敵?.
Template comments are surrounded by asterisks, and that is surrounded by the delimiter tags like so: {* this is a comment *} Smarty comments are not displayed in the final output of the template. They are used for making internal notes in the templates.
模板注釋被*號包圍,例如 {* this is a comment *}
smarty注釋不會在模板文件的最后輸出中出現(xiàn).
它只是模板內(nèi)在的注釋.
Example 3-1. Comments 例 3-1.注釋
|