hello world in html
This commit is contained in:
parent
588820ccec
commit
a859de10b5
4
app.rb
4
app.rb
|
@ -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
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -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>
|
Loading…
Reference in New Issue