box-o-sand/cookbook/015/hodgepodge/app/views/hello/world.html.erb

12 lines
343 B
Plaintext

<h1>Several increasingly silly ways of displaying &ldquo;Hello world!&rdquo;:</h1>
<p><%= "Hello world!" %></p>
<p><%= "Hello" + " world!" %></p>
<p><%= w = "world"
"Hello #{w}!" %></p>
<p><%= 'H' + ?e.chr + ('l' * 2) %><%= ('o word!').gsub('d', 'ld')%></p>
<% hello = "Hello" %>
<% world = "world!" %>
<%= hello %> <%= world %>