index.js
function(searchPaths, sourceFoundCallback) {
    	this.sourceFoundCallback = sourceFoundCallback;
        if(searchPaths) {
            searchPaths = Array.isArray(searchPaths) ? searchPaths : [searchPaths];
            // For windows, convert to forward slashes
            this.searchPaths = searchPaths.map(path.normalize);
        }
        else {
            this.searchPaths = ['.'];
        }
    }
function(searchPaths, sourceFoundCallback) {
    	this.sourceFoundCallback = sourceFoundCallback;
        if(searchPaths) {
            searchPaths = Array.isArray(searchPaths) ? searchPaths : [searchPaths];
            // For windows, convert to forward slashes
            this.searchPaths = searchPaths.map(path.normalize);
        }
        else {
            this.searchPaths = ['.'];
        }
    }
function ( searchPaths , sourceFoundCallback ) { this . sourceFoundCallback = sourceFoundCallback ; if ( searchPaths ) { searchPaths = Array . isArray ( searchPaths ) ? searchPaths : [ searchPaths ] ; // For windows, convert to forward slashes this . searchPaths = searchPaths . map ( path . normalize ) ; } else { this . searchPaths = [ '.' ] ; } }
Based off of the Nunjucks 'FileSystemLoader'
Based off of the Nunjucks FileSystemLoader