SASS preprocessing etc

master
E. Almqvist 3 years ago
parent 191f7468fa
commit 93827344ae
  1. 7
      src/app.rb
  2. 0
      src/views/index.slim
  3. 11
      src/views/layout.slim
  4. 3
      src/views/stylesheets/style.sass

@ -4,7 +4,12 @@ require "sinatra"
require "sinatra/reloader" if ARGV[0] == "debug"
require "slim"
require "sqlite3"
require "sassc"
get "/" do
"Test tesasdfhsdhjkft"
slim :index
end
get "/style.css" do
sass :"stylesheets/style", style: :compressed
end

@ -0,0 +1,11 @@
<!DOCTYPE html>
html lang="en"
head
meta charset="UTF-8"
meta name="viewport" content="width=device-width, initial-scale=1.0"
link rel="stylesheet" href="/style.css"
title The Auction House
body
==yield

@ -0,0 +1,3 @@
html
background-color: red
Loading…
Cancel
Save