1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 添加模板辅助方法
|
||||
* @name template.helper
|
||||
* @param {String} 名称
|
||||
* @param {Function} 方法
|
||||
*/
|
||||
template.helper = function (name, helper) {
|
||||
helpers[name] = helper;
|
||||
};
|
||||
|
||||
var helpers = template.helpers = utils.$helpers;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user