PHP模板引擎 Smarty 3.1.0 发布

openkk 13年前
     <p><span style="line-height:22px;font-family:'Lucida Grande', Helvetica, Arial;font-size:12px;" class="Apple-style-span">Smarty 是一个使用PHP写出来的模板引擎,是目前业界最著名的PHP模板引擎之一。它分离了逻辑代码和外在的内容,提供了一种易于管理和使用的方法,用来将原本与HTML代码混杂在一起PHP代码逻辑分离。简单的讲,目的就是要使PHP程序员同前端人员分离,使程序员改变程序的逻辑内容不会影响到前端人员的页面设计,前端人员重新修改页面不会影响到程序的程序逻辑,这在多人合作的项目中显的尤为重要。<br /> </span></p>    <p><span style="line-height:22px;font-family:'Lucida Grande', Helvetica, Arial;font-size:12px;" class="Apple-style-span"><br /> <span style="line-height:normal;font-family:Verdana, Helvetica, Arial, sans-serif;font-size:14px;" class="Apple-style-span"><strong>Notable 3.1 changes/features:</strong></span></span></p>    <ul style="margin:1em 0px;padding-left:26px;">     <li style="margin:0.33em 0px;">Smarty 2 BC removed from codebase, use SmartyBC.class.php for this</li>     <li style="margin:0.33em 0px;">Full UTF-8 compatibility with all plugins</li>     <li style="margin:0.33em 0px;">Default Template Handler for handling non-exiting template files</li>     <li style="margin:0.33em 0px;">Default Config Handler for handling non-exiting config files</li>     <li style="margin:0.33em 0px;">Default Plugin Handler for handling non-exiting plugin files</li>     <li style="margin:0.33em 0px;">{block hide} feature when no corresponding child block is found</li>     <li style="margin:0.33em 0px;">{setfilter}{/setfilter} to apply filters to a specific block of template code</li>     <li style="margin:0.33em 0px;">Improved Template Resource API</li>     <li style="margin:0.33em 0px;">Improved Cache Resource API</li>     <li style="margin:0.33em 0px;">Relative paths in template files {include file="../header.tpl"}</li>     <li style="margin:0.33em 0px;">Access to specific $template_dir via array index</li>     <li style="margin:0.33em 0px;">Access multiple template resources with extends: feature</li>     <li style="margin:0.33em 0px;">Simple global HTML escapement option with escape_html property</li>     <li style="margin:0.33em 0px;">Compile-Check on cache miss option</li>     <li style="margin:0.33em 0px;">Automatic template recompile on Smarty upgrade</li>     <li style="margin:0.33em 0px;">New Getters/Setters for main Smarty directory configuration</li>    </ul> 项目地址:    <a href="/misc/goto?guid=4958191033826918333" target="_blank">http://www.smarty.net/</a>    <br />