Skip to content
Browse files

add basic layout scaffold

  • Loading branch information...
1 parent 575b0dd commit 9f85789e7df9613617230c1d30fc2e4f0975725e @netzfisch committed Feb 10, 2014
Showing with 16 additions and 2 deletions.
  1. 0 public/stylesheets/style.css
  2. +12 −0 views/layout.slim
  3. +4 −2 views/reverse.haml
View
0 public/stylesheets/style.css
No changes.
View
12 views/layout.slim
@@ -0,0 +1,12 @@
+doctype 5
+html
+ head
+ title Yet annother Sinatra Application - YaSApp
+ meta charset="utf-8"
+ meta name="description" content="Yet annother Sinatra Application template"
+ meta name="keywords" content="sinatra webapp template ruby rspec"
+ meta name="author" content="netzfisch"
+ link type="text/css" rel="stylesheet" href="/stylesheets/style.css"
+ link type="image/ico" rel="icon" href="/images/favicon.ico"
+ body
+ == yield
View
6 views/reverse.haml
@@ -1,8 +1,10 @@
%h1 String Reverse Results
%p
- You entered the string - #{params[:str]}
+ You entered the string:
+ %b #{params[:str]}
%p
- The reversed string is - #{@reverse_value}
+ The reversed string is
+ %b #{@reverse_value}
%p
Click
%a{href: "/"} here

0 comments on commit 9f85789

Please sign in to comment.
Something went wrong with that request. Please try again.