A fake auction house I made for a school project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
the_auctionhouse/src/app.rb

21 lines
334 B

#!/usr/bin/ruby -w
require "sinatra"
require "sinatra/reloader" if ARGV[0] == "debug"
require "slim"
require "sqlite3"
require "sassc"
def get_random_subtitle
subtitles = File.readlines "misc/subtitles.txt"
subtitles.sample
end
get "/" do
slim :index
end
get "/style.css" do
sass :"stylesheets/style", style: :compressed
end