index.js
/**
   * Get the path of the path you need
   * @private
   * @param {string} filename - the filename of the template you're working on.
   * @param {boolean} bExtension - true if you want to return "html" out of "index.html", false if you want "index" out of "index.html"
   */
Get the path of the path you need
@private
@param {string} filename - the filename of the template you're working on.
Get the path of the path you need @private @param { string } filename - the filename of the template you ' re working on .
function parseFilename(filename, bExtension){
    if(typeof filename !== 'string') throw new Error('Error parsing filename: ' + filename + ' is not a string.');
    var match = filename.match(/([^:\\/]*?)(?:\.([^ :\\/.]*))?$/)
    bExtension = (Number(bExtension) || 0) + 1;
    return match[bExtension];
  }
function parseFilename ( filename , bExtension ) { if ( typeof filename !== 'string' ) throw new Error ( 'Error parsing filename: ' + filename + ' is not a string.' ) ; var match = filename . match ( / ([^:\\/]*?)(?:\.([^ :\\/.]*))?$ / ) bExtension = ( Number ( bExtension ) || 0 ) + 1 ; return match [ bExtension ] ; }
Get the path of the path you need
 @private
 @param {string} filename - the filename of the template you're working on.
Get the path of the path you need @private @param { string } filename - the filename of the template you ' re working on .
// If bExtension is true, you will get "html" out of "index.min.html" // otherwise you will get "index.min" out of "index.min.html" // Offset the first option which returns the full path.