def link_headers
      yield if block_given?
      return "" unless response.include? "Link"
      response["Link"].split(",\n").map do |line|
        url, *opts = line.split(';').map(&:strip)
        "<link href=\"#{url[1..-2]}\" #{opts.join " "} />"
      end.join "\n"
    end
def link_headers
      yield if block_given?
      return "" unless response.include? "Link"
      response["Link"].split(",\n").map do |line|
        url, *opts = line.split(';').map(&:strip)
        "<link href=\"#{url[1..-2]}\" #{opts.join " "} />"
      end.join "\n"
    end
Takes the current value of th Link header(s) and generates HTML tags
 from it.

 Example:

   get '/' do
     # You can of course use fancy helpers like #link, #stylesheet
     # or #prefetch
     response["Link"] = '</foo>; rel="next"'
     haml :some_page
   end

   __END__

   @@ layout
   %head= link_headers
   %body= yield