process(data) {
        let m = null, tpl = null, match = false;
        do {
            m = this.tokenRE.exec(data);
            //console.log(m);

            if (m == null || m.length < 2) {
                break;
            }
            tpl = fs.readFileSync(Path.join(this.root, m[1]), 'binary');
            // console.log(this.root+m[1],tpl);

            // data = data.replace(m[0], fs.readFileSync(this.root+m[1]));
            data = BufferReplace(data, m[0], tpl);
            match = true;
        } while (this.tokenRE.test(data));

        if (match)
            return data.toString('utf8');//('ascii'); 
        else
            return data;
    }
/**
     * To replace token by the corresponding file content  before
     * to send the HTTP response to the client.
     * 
     * Token should take the form <!--## file/path/to/tpl.html ##-->
     * 
     * @param {*} data 
     */
To replace token by the corresponding file content  before
to send the HTTP response to the client.

Token should take the form 

@param {*} data
To replace token by the corresponding file content before to send the HTTP response to the client . Token should take the form @param { * } data
process(data) {
        let m = null, tpl = null, match = false;
        do {
            m = this.tokenRE.exec(data);
            if (m == null || m.length < 2) {
                break;
            }
            tpl = fs.readFileSync(Path.join(this.root, m[1]), 'binary');
            data = BufferReplace(data, m[0], tpl);
            match = true;
        } while (this.tokenRE.test(data));
        if (match)
            return data.toString('utf8');
        else
            return data;
    }
process ( data ) { let m = null , tpl = null , match = false ; do { m = this . tokenRE . exec ( data ) ; if ( m == null || m . length < 2 ) { break ; } tpl = fs . readFileSync ( Path . join ( this . root , m [ 1 ] ) , 'binary' ) ; data = BufferReplace ( data , m [ 0 ] , tpl ) ; match = true ; } while ( this . tokenRE . test ( data ) ) ; if ( match ) return data . toString ( 'utf8' ) ; else return data ; }
To replace token by the corresponding file content  before
 to send the HTTP response to the client.
To replace token by the corresponding file content before to send the HTTP response to the client .
//console.log(m); // console.log(this.root+m[1],tpl); // data = data.replace(m[0], fs.readFileSync(this.root+m[1])); //('ascii'); 