Blame view

public/assets/libs/art-template/src/render.js 249 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
  /**
   * 渲染模板
   * @name    template.render
   * @param   {String}    模板
   * @param   {Object}    数据
   * @return  {String}    渲染好的字符串
   */
  template.render = function (source, options) {
      return compile(source)(options);
  };