审查视图

public/assets/libs/art-template/src/render.js 249 字节
王智 authored
1 2 3 4 5 6 7 8 9 10 11 12
/**
 * 渲染模板
 * @name    template.render
 * @param   {String}    模板
 * @param   {Object}    数据
 * @return  {String}    渲染好的字符串
 */
template.render = function (source, options) {
    return compile(source)(options);
};