```ruby
require 'open-uri'
require 'sinatra'

get '/feed' do
	url = 'https://xkcd.com/rss.xml'
	match = /(&lt;img.*? alt="(?<alt>.*?)".*?&gt;)/
	replace = "\n\\0\n&lt;p&gt;alt-text: \\k<alt>&lt;/p&gt;\n"
	open(url) do |page|
		feed = page.read.sub(/xkcd.com/, 'xkcd.com - with alt-text')
		feed.gsub(match, replace)
	end
end
```

Add redirect to github page from root
user
```ruby
require 'open-uri'
require 'sinatra'

get '/' do
	redirect to('https://github.com/joshka/xkcd-with-alt-text')
end

get '/feed' do
	url = 'https://xkcd.com/rss.xml'
	match = /(&lt;img.*? alt="(?<alt>.*?)".*?&gt;)/
	replace = "\n\\0\n&lt;p&gt;alt-text: \\k<alt>&lt;/p&gt;\n"
	open(url) do |page|
		feed = page.read.sub(/xkcd.com/, 'xkcd.com - with alt-text')
		feed.gsub(match, replace)
	end
end
```
assistant