Old high school files. Lessson notes/codes/projects etc.
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.

25 lines
365 B

#!/usr/bin/ruby
require "sinatra"
require "slim"
load "db_parse.rb"
3 years ago
db_cache = get_db() # get all the parsed data
3 years ago
get "/" do
3 years ago
slim(:person, locals: {persondata: db_cache})
end
3 years ago
get "/login" do
slim(:login)
end
get "/userpage" do
userinfo = {
username: params[:username],
password: params[:password]
}
slim(:userpage, locals: {userinfo: userinfo})
end