master
E. Almqvist 3 years ago
parent ecbc46a5d2
commit e3c3ed93d7
  1. 20
      wesweb01/slimtest/app.rb
  2. 1
      wesweb01/slimtest/views/annat.slim
  3. 13
      wesweb01/slimtest/views/layout.slim
  4. 1
      wesweb01/slimtest/views/potatis.slim
  5. 0
      wesweb01/slimtest/views/test.slim

@ -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,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()}
Loading…
Cancel
Save