File: standard.erb

package info (click to toggle)
ruby-hamlit 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,332 kB
  • sloc: ruby: 10,583; ansic: 550; sh: 23; makefile: 9
file content (55 lines) | stat: -rw-r--r-- 1,999 bytes parent folder | download | duplicates (14)
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
<!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' 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 code="<%= 1 + 2 %>">
      <%= "Holy cow        " +
          "multiline       " +
          "tags!           " +
          "A pipe (|) even!"  %>
      <%= [1, 2, 3].collect { |n| "PipesIgnored|" }.join %>
      <%= [1, 2, 3].collect { |n|
          n.to_s
        }.join("|") %>
    </p>
    <% bar = 17 %>
    <div class='silent' foo="<%= bar %>">
      <% 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 %></li>
      <% 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>