cat 链接字符串orm
<{$var|upper|cat:"test is a aa <br>"|cat:"hello word <br>"}> blog
$var 大写而且后面加上 "test is a aa hello word "字符串字符串
date_format 格式化日期form
<{$smarty.now|date_format:"%H-%y-%d "}> <br> test
当前时间 年月日bfc
regex_replace 正则替换date
<{$var|regex_replace:"/\d/":"#"}> <br>im
$var 中全部数字换成#d3
truncate截取smarty
<{$var|truncate:30:"..."}> <br>
截取 $var 30个字符串 后面写...