审查视图

public/assets/libs/art-template/src/helper.js 255 字节
王智 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/**
 * 添加模板辅助方法
 * @name    template.helper
 * @param   {String}    名称
 * @param   {Function}  方法
 */
template.helper = function (name, helper) {
    helpers[name] = helper;
};

var helpers = template.helpers = utils.$helpers;