require "sinatra" require "sinatra/reloader" $coffees = [] get "/" do template end post "/" do $coffees << params redirect "/" end def template """
What: Cost:
#{ $coffees.inspect } """ end