zhaojs
2023-06-19 9f10a4bc8a8575b3e416088af76ecef6a5dd97e9
1
2
3
4
5
6
7
8
9
10
11
/**
 * 添加模板辅助方法
 * @name    template.helper
 * @param   {String}    名称
 * @param   {Function}  方法
 */
template.helper = function (name, helper) {
    helpers[name] = helper;
};
 
var helpers = template.helpers = utils.$helpers;