You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
249 B

  1. /**
  2. * 渲染模板
  3. * @name template.render
  4. * @param {String} 模板
  5. * @param {Object} 数据
  6. * @return {String} 渲染好的字符串
  7. */
  8. template.render = function (source, options) {
  9. return compile(source)(options);
  10. };