src/core/base/wnModule.js
function ()
		{
			this.e.log&&this.e.log('Importing from config...','system');
			var importConfig = this.getConfig('import');
			var cb = this.getComponent('classBuilder');
			var validScript = /[\w|\W]+\.[js|coffee]+$/;

			for (i in importConfig)
			{
				var path = this.modulePath+importConfig[i];
				if (fs.existsSync(path))
				{
					this.e.log&&this.e.log('Importing '+path+'...','system');
					var classes = fs.readdirSync(path);
					for (c in classes)
					{

						if (!validScript.test(classes[c]))
							continue;

						var className = classes[c].split('.')[0];
						cb.addSource(className,path+classes[c]);
						cb.classes[c]=cb.buildClass(className);
					}
				}
			}
		}
function ()
		{
			this.e.log&&this.e.log('Importing from config...','system');
			var importConfig = this.getConfig('import');
			var cb = this.getComponent('classBuilder');
			var validScript = /[\w|\W]+\.[js|coffee]+$/;

			for (i in importConfig)
			{
				var path = this.modulePath+importConfig[i];
				if (fs.existsSync(path))
				{
					this.e.log&&this.e.log('Importing '+path+'...','system');
					var classes = fs.readdirSync(path);
					for (c in classes)
					{

						if (!validScript.test(classes[c]))
							continue;

						var className = classes[c].split('.')[0];
						cb.addSource(className,path+classes[c]);
						cb.classes[c]=cb.buildClass(className);
					}
				}
			}
		}
function ( ) { this . e . log && this . e . log ( 'Importing from config...' , 'system' ) ; var importConfig = this . getConfig ( 'import' ) ; var cb = this . getComponent ( 'classBuilder' ) ; var validScript = / [\w|\W]+\.[js|coffee]+$ / ; for ( i in importConfig ) { var path = this . modulePath + importConfig [ i ] ; if ( fs . existsSync ( path ) ) { this . e . log && this . e . log ( 'Importing ' + path + '...' , 'system' ) ; var classes = fs . readdirSync ( path ) ; for ( c in classes ) { if ( ! validScript . test ( classes [ c ] ) ) continue ; var className = classes [ c ] . split ( '.' ) [ 0 ] ; cb . addSource ( className , path + classes [ c ] ) ; cb . classes [ c ] = cb . buildClass ( className ) ; } } } }
Import classes from the paths from configuration.
Import classes from the paths from configuration .