手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆

smarty3即将出来

首页 > PHP >

PHP的模版里,smarty一直就是让人又爱又恨的,功能太强大了,以致于美工们看到他也会感觉头疼,毕竟是又要学一门新的语言了。
这么多年,smarty都是在2.x版本里面徘徊,如今,终于要出3了。
以下是官方的change log:

10/6/2008

- completed compilation of {include} tag, variable scoping same as in smarty2

- added compilation of {capture} tag.

- added error message on none existing template files.

10/4/2008
- added comments in the parser definition y file.

- added array of $smarty_token_names to lexer for use in trigger_template_error function

- change handling of none smarty2 style tags like {if}, {for}....

- lexer/parser optimization

10/3/2008

- create different compiled template files depending if caching and/or security is enabled

- cleaned up compiler

- lexer/parser optimization

10/2/2008

- new method trigger fatal error, displays massage and terminates smarty

- compile error status flag added
The compiler will in case of error continue to parse the template(s) to display all errors. No compiled
templates will be written, Smarty terminates after the compiler exits.

- added error message to function __call in Smarty.class.php



本站采用创作共享版权协议, 要求署名、非商业和保持一致. 本站欢迎任何非商业应用的转载, 但须注明出自"易栈网-膘叔", 保留原始链接, 此外还必须标注原文标题和链接.

Tags: smarty, version, php, template, smarttemplate

« 上一篇 | 下一篇 »

只显示10条记录相关文章

使用PHP得到所有的HTTP请求头 (浏览: 62812, 评论: 3)
我为什么会选用phpstorm (浏览: 52732, 评论: 5)
快速生成目录树 (浏览: 46881, 评论: 7)
通过file_get_contents来Post数据的实例 (浏览: 46441, 评论: 5)
PHP导入导出Excel方法 (浏览: 45256, 评论: 3)
PHP的XSS攻击过滤函数 (浏览: 42753, 评论: 2)
PHP中Eval的作用 (浏览: 41711, 评论: 4)
超详细:在Mac OS X中配置Apache + PHP + MySQL (浏览: 40428, 评论: 1)
PHP常见错误(二) (浏览: 39833, 评论: 1)
PHP sendmail (浏览: 38011, 评论: 7)

1条记录访客评论

一直在用smarty,希望3.0 alpha 少些bug

Post by Hosting on 2009, November 13, 5:39 PM 引用此文发表评论 #1


发表评论

评论内容 (必填):