mirror of https://github.com/E-Almqvist/hsf
parent
ecbc46a5d2
commit
e3c3ed93d7
@ -0,0 +1,20 @@ |
||||
#!/usr/bin/ruby |
||||
|
||||
require "sinatra" |
||||
require "slim" |
||||
|
||||
def test() |
||||
return "hej" |
||||
end |
||||
|
||||
get "/" do |
||||
slim(:layout) |
||||
end |
||||
|
||||
get "/potatis" do |
||||
slim(:potatis) |
||||
end |
||||
|
||||
get "/annat" do |
||||
slim(:annat) |
||||
end |
@ -0,0 +1 @@ |
||||
h1 hej hej |
@ -0,0 +1,13 @@ |
||||
doctype html |
||||
html |
||||
head |
||||
title TITLE |
||||
meta name="keywords" content="template language" |
||||
meta name="author" content="author" |
||||
link rel="icon" type="image/png" href="favicon.png" |
||||
body |
||||
h1 hafosjfhsdjkfhjk |
||||
== yield |
||||
h5 jaiofhsldfhlsdf |
||||
p #{test()} |
||||
|
@ -0,0 +1 @@ |
||||
h1 hej potatis |
Loading…
Reference in new issue