hello world in html

This commit is contained in:
Dr Nic Williams 2018-11-06 14:48:36 +10:00
parent 588820ccec
commit a859de10b5
5 changed files with 17 additions and 1 deletions

4
app.rb
View File

@ -1,7 +1,9 @@
require 'sinatra/base'
class App < Sinatra::Base
set :public_folder, File.dirname(__FILE__) + '/public'
get "/" do
"hello world"
erb :index
end
end

BIN
public/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

0
public/main.css Normal file
View File

0
public/main.js Normal file
View File

14
views/index.erb Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>View Secrets</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="/main.css" />
<script src="/main.js"></script>
</head>
<body>
<p>Hello world</p>
</body>
</html>