Created
April 6, 2009 12:51
-
-
Save judofyr/90747 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US'> | |
<head> | |
<title>Hampton Catlin Is Totally Awesome</title> | |
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' /> | |
</head> | |
<body> | |
<!-- You're In my house now! --> | |
<div class='header'> | |
Yes, ladies and gentileman. He is just that egotistical. | |
Fantastic! This should be multi-line output | |
The question is if this would translate! Ahah! | |
<%= 1 + 9 + 8 + 2 %> | |
<%# numbers should work and this should be ignored %> | |
</div> | |
<% 120.times do |number| -%> | |
<%= number %> | |
<% end -%> | |
<div id='body'><%= " Quotes should be loved! Just like people!" %></div> | |
Wow. | |
<p> | |
<%= "Holy cow " + | |
"multiline " + | |
"tags! " + | |
"A pipe (|) even!" %> | |
<%= [1, 2, 3].collect { |n| "PipesIgnored|" }.join %> | |
<%= [1, 2, 3].collect { |n| | |
n.to_s | |
}.join("|") %> | |
</p> | |
<div class='silent'> | |
<% foo = String.new | |
foo << "this" | |
foo << " shouldn't" | |
foo << " evaluate" %> | |
<%= foo + "but now it should!" %> | |
<%# Woah crap a comment! %> | |
</div> | |
<ul class='really cool'> | |
<% ('a'..'f').each do |a|%> | |
<li><%= a %> | |
<% end %> | |
<div class='of_divs_with_underscore' id='combo'><%= @should_eval = "with this text" %></div> | |
<%= "foo".each_line do |line| | |
nil | |
end %> | |
<div class='footer'> | |
<strong class='shout'> | |
<%= "This is a really long ruby quote. It should be loved and wrapped because its more than 50 characters. This value may change in the future and this test may look stupid.\n" + | |
" So, I'm just making it *really* long. God, I hope this works" %> | |
</strong> | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self << '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' | |
html(:xmlns=>'http://www.w3.org/1999/xhtml', 'xml:lang'=>'en-US') do | |
head do | |
title "Hampton Catlin Is Totally Awesome" | |
meta("http-equiv" => "Content-Type", :content => "text/html; charset=utf-8") | |
end | |
body do | |
# You're In my house now! | |
div :class => "header" do | |
self << %|Yes, ladies and gentileman. He is just that egotistical. | |
Fantastic! This should be multi-line output | |
The question is if this would translate! Ahah!| | |
self << 1 + 9 + 8 + 2 #numbers should work and this should be ignored | |
end | |
div(:id => "body") { self << "Quotes should be loved! Just like people!"} | |
120.times do |number| | |
number | |
end | |
self << "Wow.|" | |
p do | |
self << "Holy cow " + | |
"multiline " + | |
"tags! " + | |
"A pipe (|) even!" | |
self << [1, 2, 3].collect { |n| "PipesIgnored|" } | |
self << [1, 2, 3].collect { |n| | |
n.to_s | |
}.join("|") | |
end | |
div(:class => "silent #{@night}") do | |
foo = String.new | |
foo << "this" | |
foo << " shouldn't" | |
foo << " evaluate" | |
self << foo + " but now it should!\n" | |
# Woah crap a comment! | |
end | |
# That was a line that shouldn't close everything. | |
ul(:class => "really cool") do | |
('a'..'f').each do |a| | |
li a | |
end | |
end | |
div((@should_eval = "with this text"), :id => "combo", :class => "of_divs_with_underscore") | |
[ 104, 101, 108, 108, 111 ].map do |byte| | |
byte.chr | |
end | |
div(:class => "footer") do | |
strong("This is a really long ruby quote. It should be loved and wrapped because its more than 50 characters. This value may change in the future and this test may look stupid. \nSo, I'm just making it *really* long. God, I hope this works", :class => "shout") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment