정적 사이트의 HTML 아카이브를 만드는 가장 좋은 방법에 대한 업데이트가 있나요?

최근에 이렇게 해봤습니다.

 def serve
    file_path = File.expand_path(
      params[:path]+"."+params[:format],
      File.join(File.dirname(__FILE__), "../../public")
    )
    if File.file?(file_path)
      send_file file_path, type: "text/html", disposition: "inline"
    else
      render plain: "404 Not Found", status: 404
    end
  end