MVC框架中的模型-视图分离问题(五) —— 分离之评测

来源:互联网 发布:alias软件购买 编辑:程序博客网 时间:2024/06/05 12:01

    下面的框架评测主要来源于《Enforcing Strict Model-View Separation in Template Engines》[1],由于本人对其中的框架没有实际使用过,因此只是概略地列出评测结果。在下节中我会继续根据自己的经验讨论别的框架,也会尝试列出判断的证据。希望随着自身经验的丰富,这个系列也能继续下去。
    表格中,打叉表示对应的框架违反了对应的分离规则。打勾越多,表示该框架的模型-视图混淆得越厉害。而分离和混淆的好处和坏处,本系列的第三节《MVC框架中的模型-视图分离问题(三) —— 分离原动力》已经进行了论述,有兴趣的朋友可以参考里面的内容。

表1:MVC框架模型-视图分离评测(1)

 

 

参考文献
[1] Parr, T.J., Enforcing Strict Model-view Separation in Template Engines. WWW ’04: Proceedings of the 13th international conference onWorldWideWeb, New York, NY, USA, ACM Press (2004) 224–233, http://www.cs.usfca.edu/~parrt/papers/mvc.templates.pdf
[2] T. Parr. StringTemplate documentation. September 2003. http://www.antlr.org/stringtemplate/index.tml
[3] S. Tregar. HTML::Template. http://html-template.sourceforge.net
[4] Enhydra. XMLC. http://xmlc.enhydra.org/project/aboutProject/index.html
[5] Velocity. http://jakarta.apache.org/velocity/index.html
[6] FreeMarker. http://freemarker.sourceforge.net
[7] Macromedia. Coldfusion. http://www.macromedia.com/software/coldfusion
[8] http://template-toolkit.org/
[9] http://www.webmacro.org/

原创粉丝点击