Smarty是一个使用PHP写出来的模板引擎,是目前业界最著名的PHP模板引擎之一。它分离了逻辑代码和外在的内容,提供了一种易于管理和使用的方法,用来将原本与HTML代码混杂在一起PHP代码逻辑分离。简单的讲,目的就是要使PHP程序员同前端人员分离,使程序员改变程序的逻辑内容不会影响到前端人员的页面设计,前端人员重新修改页面不会影响到程序的程序逻辑,这在多人合作的项目中显的尤为重要。
Smarty 3.1.1 改进记录:
- bugfix {foreachelse} does fail if {section} was nested inside {foreach} |
- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true |
- remove unused properties |
||||
- optimization use real function instead anonymous function for preg_replace_callback |
||||
- bugfix a relative {include} in child template blocks failed |
||||
- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an |
||||
extended Smarty class created problems |
||||
- bugfix error muting was not implemented for cache locking
|
暂无更多评论