def replace_path(path, name=nil)
      name ||= File.basename path
      self.replace_pattern path, name
    end
def replace_path(path, name=nil)
      name ||= File.basename path
      self.replace_pattern path, name
    end
Define a path, whose occurrences in the output should be replaced by
 either its basename or a given placeholder.

 @param  [String] path
         The path

 @param  [String] name
         The name of the path, or the basename of the given path