index.js
function (name) {
  var n = path.extname(name).length;
  return n === 0 ? name : name.slice(0, -n);
}
function (name) {
  var n = path.extname(name).length;
  return n === 0 ? name : name.slice(0, -n);
}
function ( name ) { var n = path . extname ( name ) . length ; return n === 0 ? name : name . slice ( 0 , - n ) ; }
Default name function returns the template filename without extension.
Default name function returns the template filename without extension .