1234567891011121314151617181920212223 |
- /**
- * @Author HonorLee (dev@honorlee.me)
- * @Version 1.0 (2018-05-04)
- * @License MIT
- */
- module.exports = {
- __construct:function(){
- global.H = function(healperName){
- if(!healperName){
- LOGGER.error('Helper name undefined!!');
- return null
- }
- healperName = healperName.toLowerCase();
- try{
- FILE.statSync(Core.Path.Helper + '/'+healperName+'.js');
- }catch(e){
- LOGGER.error('No such helper ['+healperName+']');
- return null;
- }
- return require(Core.Path.Helper + '/'+healperName+'.js');
- }
- }
- }
|