Files
code-bang/backend/public/assets/libs/art-template/src/render.js
T
2026-09-22 17:47:01 +08:00

13 lines
249 B
JavaScript

/**
* 渲染模板
* @name template.render
* @param {String} 模板
* @param {Object} 数据
* @return {String} 渲染好的字符串
*/
template.render = function (source, options) {
return compile(source)(options);
};