Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 919 Bytes

history.md

File metadata and controls

38 lines (25 loc) · 919 Bytes

2.1.beta.160814

  1. 增强bingo.compile
  bingo.compile({ tmpl:'{{include src="inc1" /}}', node:document.body, ctrl:null}).then(....)
  1. app.tmpl 与 cp.$loadTmpl 支持子模板
  app.tmpl('user/tmpls', { tmplid:'userinof'}).then(....)
  cp.$loadTmpl('user/tmpls', { tmplid:'userinof'}).then(....)
  1. route promise 添加参数 context
  app.route({
	promise:function(url, p , context){
	  //context 为route解释后的内容
	  return bingo.Promise(....);
	}
  });
  1. 强化{{route}}

  2. {{include}} 的$export为cp, 并支持src属性

  3. {{view with="true/false" /}} 添加with属性支持默认为true, 使用with模式; 如果为false时{{this.userName}}指令内容要添加this

  4. 优化代码(编译性能提升30%)

  5. 调整Array的方法, 如push修改为bgPush, 不占用原来方法

  6. 调整异步处理机制,减少UI闪动