From 011413a2220c630ad09acc4e27e518fdd8bcc4ac Mon Sep 17 00:00:00 2001 From: Kevin Skilton Date: Thu, 2 May 2019 10:51:59 -0400 Subject: [PATCH] done --- app.rb | 11 +++++++++++ views/date.erb | 1 + views/goodbye.erb | 4 ++++ views/hello.erb | 4 ++++ 4 files changed, 20 insertions(+) create mode 100644 views/date.erb create mode 100644 views/goodbye.erb create mode 100644 views/hello.erb diff --git a/app.rb b/app.rb index 254fe3f..9f7d7bf 100644 --- a/app.rb +++ b/app.rb @@ -4,5 +4,16 @@ class App < Sinatra::Base erb :index end + get '/hello' do + erb :hello + end + + get '/goodbye' do + erb :goodbye + end + + get '/date' do + erb :date + end end diff --git a/views/date.erb b/views/date.erb new file mode 100644 index 0000000..7fa9753 --- /dev/null +++ b/views/date.erb @@ -0,0 +1 @@ +The date is <%= Date.today.strftime("%A, %B %d, %Y") %> diff --git a/views/goodbye.erb b/views/goodbye.erb new file mode 100644 index 0000000..70707ac --- /dev/null +++ b/views/goodbye.erb @@ -0,0 +1,4 @@ + + +

"Goodbye Joe"

+ diff --git a/views/hello.erb b/views/hello.erb new file mode 100644 index 0000000..cda305c --- /dev/null +++ b/views/hello.erb @@ -0,0 +1,4 @@ + + +

"Hello World"

+