Most of the functions take attributes that specify or modify their behavior. Attributes to Smarty functions are much like HTML attributes. Static values don't have to be enclosed in quotes, but it is recommended for literal strings. Variables may also be used, and should not be in quotes.
多數的函式都會視所接收到的變數而改變行為。Smarty 函式的變數類似 HTML 的變數 ,靜態變數不必包含在引號間,但如果變數是字串時則建議包含在雙引號間,而如果是數字的話 也不必使用引號。
Some attributes require boolean values (true or false). These can be specified as either unquoted true, on, and yes, or false, off, and no.
有些變數是布林型態的變數(true 或 false),此類變數也不需要引號 true, on, 與 yes, 或者是 false, off, 和 no。