code: function getNameFromFileName(filename) {
    var file = basename(filename).replace(/\.(?:pug|jade)$/, '');
    return file.toLowerCase().replace(/[^a-z0-9]+([a-z])/g, function (_, character) {
      return character.toUpperCase();
    }) + 'Template';
  }
docs: Get a sensible name for a template function from a file path
  
  @param {String} filename
  @returns {String}