# File lib/yard/server/commands/static_file_helpers.rb, line 26
        def static_template_file?
          # these consts were defined in StaticFileCommand originally 
          static_paths = StaticFileCommand::STATIC_PATHS
          default_mime_types = StaticFileCommand::DefaultMimeTypes

          assets_template = Templates::Engine.template(:default, :fulldoc, :html)

          file = nil
          ([adapter.document_root] + static_paths.reverse).compact.each do |path_prefix|
            file = File.join(path_prefix, path)
            break if File.exist?(file)
            file = nil
          end

          # Search in default/fulldoc/html template if nothing in static asset paths
          file ||= assets_template.find_file(path)

          if file
            ext = "." + (path[/\.(\w+)$/, 1] || "html")
            headers['Content-Type'] = mime_type(ext, default_mime_types)
            self.body = File.read(file)
            raise FinishRequest
          end
        end