摘要: Mustache是一种Logic-less template.不支持if这类条件判断是Logic-less的显著特征之一.经典案例:var view = { name: "Joe", winnings: { value: 1000, taxed_value: function() { return this.value - (this.value * 0.4); } }};var template = "Welcome, {{name}}! {{>winnings}}"var partials = { winnings: "You jus 阅读全文
posted @ 2013-05-06 14:23 ~小章鱼~ 阅读(685) 评论(0) 推荐(0) 编辑