PHP模板引擎 Smarty 3.1.7 发布
jopen 13年前
<a href="/misc/goto?guid=4958191033826918333" target="_blank">smarty</a>是一个基于PHP开发的PHP模板引擎。它提供了逻辑与外在内容的分离,简单的讲,目的就是要使 用PHP程序员同美工分离,使用的程序员改变程序的逻辑内容不会影响到美工的页面设计,美工重新修改页面不会影响到程序的程序逻辑,这在多人合作的项目中 显的尤为重要。 <br /> <br /> Smarty 3.1.7 改进记录: <br /> <br /> ===== Smarty-3.1.7 ===== <br /> 18.12.2011 <br /> - bugfix strings ending with " in multiline strings of config files failed to compile (isse #67) <br /> - added chaining to Smarty_Internal_Templatebase <br /> - changed unloadFilter() to not return a boolean in favor of chaining and API conformity <br /> - bugfix unregisterObject() raised notice when object to unregister did not exist <br /> - changed internals to use Smarty::$_MBSTRING ($_CHARSET, $_DATE_FORMAT) for better unit testing <br /> - added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452) <br /> - added Smarty_Security::isTrustedUri() and Smarty_Security::$trusted_uri to validate <br /> remote resource calls through {fetch} and {html_image} (Forum Topic 20627) <br /> 17.12.2011 <br /> - improvement of compiling speed by new handling of plain text blocks in the lexer/parser (issue #68) <br /> 16.12.2011 <br /> - bugfix the source exits flag and timestamp was not setup when template was in php include path (issue #69) <br /> 9.12.2011 <br /> - bugfix {capture} tags around recursive {include} calls did throw exception (Forum Topic 20549) <br /> - bugfix $auto_literal = false did not work with { block} tags in child templates (Forum Topic 20581) <br /> - bugfix template inheritance: do not include code of {include} in overloaded {block} into compiled <br /> parent template (Issue #66} <br /> - bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return expected <br /> result (Forum Topic 20564)