Handlebars.js 模板引擎

http://www.ghostchina.com/introducing-the-handlebars-js-templating-engine/

这个好用是好用,可以不走control去拼装一大堆数据,模型,在页面使用的时候,按需加载不同的模块。

但是这需要请求的api,或者control提供的json数据与页面紧密集合,不利于方法的继承,重载。违背了分离的原则。

原文地址:https://www.cnblogs.com/sanqianjin/p/4865341.html