-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby.rb
executable file
·55 lines (55 loc) · 1.54 KB
/
ruby.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/ruby
## hello1.cgi
#
puts "Content-Type: text/html"
puts
puts "
<!DOCTYPE html>
<html lang=""en"">
<head> <meta charset=""utf-8"">
<title>Hello World from Ruby by Koding</title>
<meta name=""viewport"" content=""width=device-width,initial-scale=1"">
<link rel='stylesheet' href='//koding.com/hello/css/style.css'>
<!--[if IE]>
<script src=""//html5shiv.googlecode.com/svn/trunk/html5.js""></script>
<![endif]-->
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
</head>
<body class=""ruby"">
<div id=""container"">
<div id=""main"" role=""main"" class=""hellobox"" >
<header><a href=""http://koding.com"" class=""kdlogo"">Koding.com</a></header>
<h1>Hello World!</h1>
<h2>From Ruby
"
puts RUBY_VERSION
puts "</h2>
</div>
<nav>
<ul>
<li><a href='index.html'>HTML</a></li>
<li><a href=""php.php"">PHP</a></li>
<li><a href=""python.py"">Python</a></li>
<li><a href=""perl.pl"">Perl</a></li>
<li><a class=""active"" href=""ruby.rb"">ruby</a></li>
</ul>
</nav>
<footer>
<h4>This is an example page running Ruby on your Koding Server.</h4> <p>You can create your own simple Ruby ""Hello World"" with this:</p>
<pre>#!/usr/bin/ruby
## hello1.cgi
#
puts "Content-Type: text/html"
puts
puts "<html>"
puts "<body>"
puts "Hello, World from ruby!"
puts "</body>"
puts "</html>"
#</pre>
</footer>
</div>
</body>
</html>
"
#