haml-edge 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -0
- data/FAQ +138 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +332 -0
- data/REVISION +1 -0
- data/Rakefile +226 -0
- data/VERSION +1 -0
- data/bin/css2sass +7 -0
- data/bin/haml +9 -0
- data/bin/html2haml +7 -0
- data/bin/sass +8 -0
- data/extra/edge_gem_watch.rb +13 -0
- data/extra/haml-mode.el +596 -0
- data/extra/sass-mode.el +200 -0
- data/init.rb +8 -0
- data/lib/haml/buffer.rb +255 -0
- data/lib/haml/engine.rb +268 -0
- data/lib/haml/error.rb +22 -0
- data/lib/haml/exec.rb +395 -0
- data/lib/haml/filters.rb +275 -0
- data/lib/haml/helpers/action_view_extensions.rb +45 -0
- data/lib/haml/helpers/action_view_mods.rb +181 -0
- data/lib/haml/helpers.rb +488 -0
- data/lib/haml/html.rb +222 -0
- data/lib/haml/precompiler.rb +904 -0
- data/lib/haml/shared.rb +45 -0
- data/lib/haml/template/patch.rb +58 -0
- data/lib/haml/template/plugin.rb +72 -0
- data/lib/haml/template.rb +42 -0
- data/lib/haml/util.rb +88 -0
- data/lib/haml/version.rb +47 -0
- data/lib/haml.rb +1044 -0
- data/lib/sass/css.rb +388 -0
- data/lib/sass/engine.rb +495 -0
- data/lib/sass/environment.rb +46 -0
- data/lib/sass/error.rb +35 -0
- data/lib/sass/plugin/merb.rb +56 -0
- data/lib/sass/plugin/rails.rb +24 -0
- data/lib/sass/plugin.rb +204 -0
- data/lib/sass/repl.rb +51 -0
- data/lib/sass/script/bool.rb +13 -0
- data/lib/sass/script/color.rb +97 -0
- data/lib/sass/script/funcall.rb +29 -0
- data/lib/sass/script/functions.rb +134 -0
- data/lib/sass/script/lexer.rb +148 -0
- data/lib/sass/script/literal.rb +82 -0
- data/lib/sass/script/number.rb +231 -0
- data/lib/sass/script/operation.rb +30 -0
- data/lib/sass/script/parser.rb +142 -0
- data/lib/sass/script/string.rb +9 -0
- data/lib/sass/script/unary_operation.rb +21 -0
- data/lib/sass/script/variable.rb +20 -0
- data/lib/sass/script.rb +38 -0
- data/lib/sass/tree/attr_node.rb +64 -0
- data/lib/sass/tree/comment_node.rb +30 -0
- data/lib/sass/tree/debug_node.rb +22 -0
- data/lib/sass/tree/directive_node.rb +50 -0
- data/lib/sass/tree/file_node.rb +27 -0
- data/lib/sass/tree/for_node.rb +29 -0
- data/lib/sass/tree/if_node.rb +27 -0
- data/lib/sass/tree/mixin_def_node.rb +18 -0
- data/lib/sass/tree/mixin_node.rb +35 -0
- data/lib/sass/tree/node.rb +99 -0
- data/lib/sass/tree/rule_node.rb +161 -0
- data/lib/sass/tree/variable_node.rb +24 -0
- data/lib/sass/tree/while_node.rb +21 -0
- data/lib/sass.rb +1062 -0
- data/rails/init.rb +1 -0
- data/test/benchmark.rb +99 -0
- data/test/haml/engine_test.rb +795 -0
- data/test/haml/helper_test.rb +228 -0
- data/test/haml/html2haml_test.rb +108 -0
- data/test/haml/markaby/standard.mab +52 -0
- data/test/haml/mocks/article.rb +6 -0
- data/test/haml/results/content_for_layout.xhtml +15 -0
- data/test/haml/results/eval_suppressed.xhtml +9 -0
- data/test/haml/results/filters.xhtml +62 -0
- data/test/haml/results/helpers.xhtml +93 -0
- data/test/haml/results/helpful.xhtml +10 -0
- data/test/haml/results/just_stuff.xhtml +68 -0
- data/test/haml/results/list.xhtml +12 -0
- data/test/haml/results/nuke_inner_whitespace.xhtml +40 -0
- data/test/haml/results/nuke_outer_whitespace.xhtml +148 -0
- data/test/haml/results/original_engine.xhtml +20 -0
- data/test/haml/results/partial_layout.xhtml +5 -0
- data/test/haml/results/partials.xhtml +21 -0
- data/test/haml/results/render_layout.xhtml +3 -0
- data/test/haml/results/silent_script.xhtml +74 -0
- data/test/haml/results/standard.xhtml +162 -0
- data/test/haml/results/tag_parsing.xhtml +23 -0
- data/test/haml/results/very_basic.xhtml +5 -0
- data/test/haml/results/whitespace_handling.xhtml +89 -0
- data/test/haml/rhtml/_av_partial_1.rhtml +12 -0
- data/test/haml/rhtml/_av_partial_2.rhtml +8 -0
- data/test/haml/rhtml/action_view.rhtml +62 -0
- data/test/haml/rhtml/standard.rhtml +54 -0
- data/test/haml/template_test.rb +204 -0
- data/test/haml/templates/_av_partial_1.haml +9 -0
- data/test/haml/templates/_av_partial_1_ugly.haml +9 -0
- data/test/haml/templates/_av_partial_2.haml +5 -0
- data/test/haml/templates/_av_partial_2_ugly.haml +5 -0
- data/test/haml/templates/_layout.erb +3 -0
- data/test/haml/templates/_layout_for_partial.haml +3 -0
- data/test/haml/templates/_partial.haml +8 -0
- data/test/haml/templates/_text_area.haml +3 -0
- data/test/haml/templates/action_view.haml +47 -0
- data/test/haml/templates/action_view_ugly.haml +47 -0
- data/test/haml/templates/breakage.haml +8 -0
- data/test/haml/templates/content_for_layout.haml +10 -0
- data/test/haml/templates/eval_suppressed.haml +11 -0
- data/test/haml/templates/filters.haml +66 -0
- data/test/haml/templates/helpers.haml +95 -0
- data/test/haml/templates/helpful.haml +11 -0
- data/test/haml/templates/just_stuff.haml +83 -0
- data/test/haml/templates/list.haml +12 -0
- data/test/haml/templates/nuke_inner_whitespace.haml +32 -0
- data/test/haml/templates/nuke_outer_whitespace.haml +144 -0
- data/test/haml/templates/original_engine.haml +17 -0
- data/test/haml/templates/partial_layout.haml +3 -0
- data/test/haml/templates/partialize.haml +1 -0
- data/test/haml/templates/partials.haml +12 -0
- data/test/haml/templates/render_layout.haml +2 -0
- data/test/haml/templates/silent_script.haml +40 -0
- data/test/haml/templates/standard.haml +42 -0
- data/test/haml/templates/standard_ugly.haml +42 -0
- data/test/haml/templates/tag_parsing.haml +21 -0
- data/test/haml/templates/very_basic.haml +4 -0
- data/test/haml/templates/whitespace_handling.haml +87 -0
- data/test/haml/util_test.rb +87 -0
- data/test/linked_rails.rb +12 -0
- data/test/sass/css2sass_test.rb +193 -0
- data/test/sass/engine_test.rb +709 -0
- data/test/sass/functions_test.rb +109 -0
- data/test/sass/more_results/more1.css +9 -0
- data/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/test/sass/more_results/more_import.css +29 -0
- data/test/sass/more_templates/_more_partial.sass +2 -0
- data/test/sass/more_templates/more1.sass +23 -0
- data/test/sass/more_templates/more_import.sass +11 -0
- data/test/sass/plugin_test.rb +213 -0
- data/test/sass/results/alt.css +4 -0
- data/test/sass/results/basic.css +9 -0
- data/test/sass/results/compact.css +5 -0
- data/test/sass/results/complex.css +87 -0
- data/test/sass/results/compressed.css +1 -0
- data/test/sass/results/expanded.css +19 -0
- data/test/sass/results/import.css +29 -0
- data/test/sass/results/line_numbers.css +49 -0
- data/test/sass/results/mixins.css +95 -0
- data/test/sass/results/multiline.css +24 -0
- data/test/sass/results/nested.css +22 -0
- data/test/sass/results/parent_ref.css +13 -0
- data/test/sass/results/script.css +16 -0
- data/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/test/sass/results/subdir/subdir.css +3 -0
- data/test/sass/results/units.css +11 -0
- data/test/sass/script_test.rb +250 -0
- data/test/sass/templates/_partial.sass +2 -0
- data/test/sass/templates/alt.sass +16 -0
- data/test/sass/templates/basic.sass +23 -0
- data/test/sass/templates/bork.sass +2 -0
- data/test/sass/templates/bork2.sass +2 -0
- data/test/sass/templates/compact.sass +17 -0
- data/test/sass/templates/complex.sass +309 -0
- data/test/sass/templates/compressed.sass +15 -0
- data/test/sass/templates/expanded.sass +17 -0
- data/test/sass/templates/import.sass +11 -0
- data/test/sass/templates/importee.sass +19 -0
- data/test/sass/templates/line_numbers.sass +13 -0
- data/test/sass/templates/mixins.sass +76 -0
- data/test/sass/templates/multiline.sass +20 -0
- data/test/sass/templates/nested.sass +25 -0
- data/test/sass/templates/parent_ref.sass +25 -0
- data/test/sass/templates/script.sass +101 -0
- data/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/test/sass/templates/subdir/subdir.sass +6 -0
- data/test/sass/templates/units.sass +11 -0
- data/test/test_helper.rb +21 -0
- metadata +278 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
<p>
|
2
|
+
<q>Foo</q>
|
3
|
+
</p>
|
4
|
+
<p>
|
5
|
+
<q a='2'>Foo</q>
|
6
|
+
</p>
|
7
|
+
<p>
|
8
|
+
<q>Foo
|
9
|
+
Bar</q>
|
10
|
+
</p>
|
11
|
+
<p>
|
12
|
+
<q a='2'>Foo
|
13
|
+
Bar</q>
|
14
|
+
</p>
|
15
|
+
<p>
|
16
|
+
<q>Foo
|
17
|
+
Bar</q>
|
18
|
+
</p>
|
19
|
+
<p>
|
20
|
+
<q a='2'>Foo
|
21
|
+
Bar</q>
|
22
|
+
</p>
|
23
|
+
<p>
|
24
|
+
<q><div>
|
25
|
+
Foo
|
26
|
+
Bar
|
27
|
+
</div></q>
|
28
|
+
</p>
|
29
|
+
<p>
|
30
|
+
<q a='2'><div>
|
31
|
+
Foo
|
32
|
+
Bar
|
33
|
+
</div></q>
|
34
|
+
</p>
|
35
|
+
<p>
|
36
|
+
<q>foo</q>
|
37
|
+
<q a='2'>
|
38
|
+
bar
|
39
|
+
</q>
|
40
|
+
</p>
|
@@ -0,0 +1,148 @@
|
|
1
|
+
<p>
|
2
|
+
<p><q>
|
3
|
+
Foo
|
4
|
+
</q></p>
|
5
|
+
</p>
|
6
|
+
<p>
|
7
|
+
<p><q a='2'>
|
8
|
+
Foo
|
9
|
+
</q></p>
|
10
|
+
</p>
|
11
|
+
<p>
|
12
|
+
<p><q>Foo</q></p>
|
13
|
+
</p>
|
14
|
+
<p>
|
15
|
+
<p><q a='2'>Foo</q></p>
|
16
|
+
</p>
|
17
|
+
<p>
|
18
|
+
<p><q>
|
19
|
+
Foo
|
20
|
+
</q></p>
|
21
|
+
</p>
|
22
|
+
<p>
|
23
|
+
<p><q a='2'>
|
24
|
+
Foo
|
25
|
+
</q></p>
|
26
|
+
</p>
|
27
|
+
<p>
|
28
|
+
<p><q>Foo</q></p>
|
29
|
+
</p>
|
30
|
+
<p>
|
31
|
+
<p><q a='2'>Foo</q></p>
|
32
|
+
</p>
|
33
|
+
<p>
|
34
|
+
<p><q>
|
35
|
+
Foo
|
36
|
+
Bar
|
37
|
+
</q></p>
|
38
|
+
</p>
|
39
|
+
<p>
|
40
|
+
<p><q a='2'>
|
41
|
+
Foo
|
42
|
+
Bar
|
43
|
+
</q></p>
|
44
|
+
</p>
|
45
|
+
<p>
|
46
|
+
<p><q>
|
47
|
+
Foo
|
48
|
+
Bar
|
49
|
+
</q></p>
|
50
|
+
</p>
|
51
|
+
<p>
|
52
|
+
<p><q a='2'>
|
53
|
+
Foo
|
54
|
+
Bar
|
55
|
+
</q></p>
|
56
|
+
</p>
|
57
|
+
<p>
|
58
|
+
<p>
|
59
|
+
foo<q>
|
60
|
+
Foo
|
61
|
+
</q>bar
|
62
|
+
</p>
|
63
|
+
</p>
|
64
|
+
<p>
|
65
|
+
<p>
|
66
|
+
foo<q a='2'>
|
67
|
+
Foo
|
68
|
+
</q>bar
|
69
|
+
</p>
|
70
|
+
</p>
|
71
|
+
<p>
|
72
|
+
<p>
|
73
|
+
foo<q>Foo</q>bar
|
74
|
+
</p>
|
75
|
+
</p>
|
76
|
+
<p>
|
77
|
+
<p>
|
78
|
+
foo<q a='2'>Foo</q>bar
|
79
|
+
</p>
|
80
|
+
</p>
|
81
|
+
<p>
|
82
|
+
<p>
|
83
|
+
foo<q>
|
84
|
+
Foo
|
85
|
+
</q>bar
|
86
|
+
</p>
|
87
|
+
</p>
|
88
|
+
<p>
|
89
|
+
<p>
|
90
|
+
foo<q a='2'>
|
91
|
+
Foo
|
92
|
+
</q>bar
|
93
|
+
</p>
|
94
|
+
</p>
|
95
|
+
<p>
|
96
|
+
<p>
|
97
|
+
foo<q>Foo</q>bar
|
98
|
+
</p>
|
99
|
+
</p>
|
100
|
+
<p>
|
101
|
+
<p>
|
102
|
+
foo<q a='2'>Foo</q>bar
|
103
|
+
</p>
|
104
|
+
</p>
|
105
|
+
<p>
|
106
|
+
<p>
|
107
|
+
foo<q>
|
108
|
+
Foo
|
109
|
+
Bar
|
110
|
+
</q>bar
|
111
|
+
</p>
|
112
|
+
</p>
|
113
|
+
<p>
|
114
|
+
<p>
|
115
|
+
foo<q a='2'>
|
116
|
+
Foo
|
117
|
+
Bar
|
118
|
+
</q>bar
|
119
|
+
</p>
|
120
|
+
</p>
|
121
|
+
<p>
|
122
|
+
<p>
|
123
|
+
foo<q>
|
124
|
+
Foo
|
125
|
+
Bar
|
126
|
+
</q>bar
|
127
|
+
</p>
|
128
|
+
</p>
|
129
|
+
<p>
|
130
|
+
<p>
|
131
|
+
foo<q a='2'>
|
132
|
+
Foo
|
133
|
+
Bar
|
134
|
+
</q>bar
|
135
|
+
</p>
|
136
|
+
</p>
|
137
|
+
<p>
|
138
|
+
<p><q></q></p>
|
139
|
+
</p>
|
140
|
+
<p>
|
141
|
+
<p><q /></p>
|
142
|
+
</p>
|
143
|
+
<p>
|
144
|
+
<p><q a='2'></q></p>
|
145
|
+
</p>
|
146
|
+
<p>
|
147
|
+
<p><q a='2' /></p>
|
148
|
+
</p>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Stop. haml time</title>
|
5
|
+
<div id='content'>
|
6
|
+
<h1>This is a title!</h1>
|
7
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>
|
8
|
+
<p class='foo'>Cigarettes!</p>
|
9
|
+
<h2>Man alive!</h2>
|
10
|
+
<ul class='things'>
|
11
|
+
<li>Slippers</li>
|
12
|
+
<li>Shoes</li>
|
13
|
+
<li>Bathrobe</li>
|
14
|
+
<li>Coffee</li>
|
15
|
+
</ul>
|
16
|
+
<pre>This is some text that's in a pre block!
|
17
|
+
Let's see what happens when it's rendered! What about now, since we're on a new line?</pre>
|
18
|
+
</div>
|
19
|
+
</head>
|
20
|
+
</html>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
<div>
|
2
|
+
<h1>I can count!</h1>
|
3
|
+
1
|
4
|
+
2
|
5
|
+
3
|
6
|
+
4
|
7
|
+
5
|
8
|
+
6
|
9
|
+
7
|
10
|
+
8
|
11
|
+
9
|
12
|
+
10
|
13
|
+
11
|
14
|
+
12
|
15
|
+
13
|
16
|
+
14
|
17
|
+
15
|
18
|
+
16
|
19
|
+
17
|
20
|
+
18
|
21
|
+
19
|
22
|
+
20
|
23
|
+
<h1>I know my ABCs!</h1>
|
24
|
+
<ul>
|
25
|
+
<li>a</li>
|
26
|
+
<li>b</li>
|
27
|
+
<li>c</li>
|
28
|
+
<li>d</li>
|
29
|
+
<li>e</li>
|
30
|
+
<li>f</li>
|
31
|
+
<li>g</li>
|
32
|
+
<li>h</li>
|
33
|
+
<li>i</li>
|
34
|
+
<li>j</li>
|
35
|
+
<li>k</li>
|
36
|
+
<li>l</li>
|
37
|
+
<li>m</li>
|
38
|
+
<li>n</li>
|
39
|
+
<li>o</li>
|
40
|
+
<li>p</li>
|
41
|
+
<li>q</li>
|
42
|
+
<li>r</li>
|
43
|
+
<li>s</li>
|
44
|
+
<li>t</li>
|
45
|
+
<li>u</li>
|
46
|
+
<li>v</li>
|
47
|
+
<li>w</li>
|
48
|
+
<li>x</li>
|
49
|
+
<li>y</li>
|
50
|
+
<li>z</li>
|
51
|
+
</ul>
|
52
|
+
<h1>I can catch errors!</h1>
|
53
|
+
Oh no! "undefined method `silly' for String:Class" happened!
|
54
|
+
<p>
|
55
|
+
"false" is:
|
56
|
+
false
|
57
|
+
</p>
|
58
|
+
Even!
|
59
|
+
Odd!
|
60
|
+
Even!
|
61
|
+
Odd!
|
62
|
+
Even!
|
63
|
+
</div>
|
64
|
+
<div class='foo'>
|
65
|
+
<strong>foobar</strong>
|
66
|
+
</div>
|
67
|
+
<strong>0</strong>
|
68
|
+
<strong>1</strong>
|
69
|
+
<strong>2</strong>
|
70
|
+
<strong>3</strong>
|
71
|
+
<strong>4</strong>
|
72
|
+
<div class='test'>
|
73
|
+
<p>boom</p>
|
74
|
+
</div>
|
@@ -0,0 +1,162 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html lang='en-US' xml:lang='en-US' xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
+
<head>
|
4
|
+
<title>Hampton Catlin Is Totally Awesome</title>
|
5
|
+
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<!-- You're In my house now! -->
|
9
|
+
<div class='header'>
|
10
|
+
Yes, ladies and gentileman. He is just that egotistical.
|
11
|
+
Fantastic! This should be multi-line output
|
12
|
+
The question is if this would translate! Ahah!
|
13
|
+
20
|
14
|
+
</div>
|
15
|
+
<div id='body'> Quotes should be loved! Just like people!</div>
|
16
|
+
0
|
17
|
+
1
|
18
|
+
2
|
19
|
+
3
|
20
|
+
4
|
21
|
+
5
|
22
|
+
6
|
23
|
+
7
|
24
|
+
8
|
25
|
+
9
|
26
|
+
10
|
27
|
+
11
|
28
|
+
12
|
29
|
+
13
|
30
|
+
14
|
31
|
+
15
|
32
|
+
16
|
33
|
+
17
|
34
|
+
18
|
35
|
+
19
|
36
|
+
20
|
37
|
+
21
|
38
|
+
22
|
39
|
+
23
|
40
|
+
24
|
41
|
+
25
|
42
|
+
26
|
43
|
+
27
|
44
|
+
28
|
45
|
+
29
|
46
|
+
30
|
47
|
+
31
|
48
|
+
32
|
49
|
+
33
|
50
|
+
34
|
51
|
+
35
|
52
|
+
36
|
53
|
+
37
|
54
|
+
38
|
55
|
+
39
|
56
|
+
40
|
57
|
+
41
|
58
|
+
42
|
59
|
+
43
|
60
|
+
44
|
61
|
+
45
|
62
|
+
46
|
63
|
+
47
|
64
|
+
48
|
65
|
+
49
|
66
|
+
50
|
67
|
+
51
|
68
|
+
52
|
69
|
+
53
|
70
|
+
54
|
71
|
+
55
|
72
|
+
56
|
73
|
+
57
|
74
|
+
58
|
75
|
+
59
|
76
|
+
60
|
77
|
+
61
|
78
|
+
62
|
79
|
+
63
|
80
|
+
64
|
81
|
+
65
|
82
|
+
66
|
83
|
+
67
|
84
|
+
68
|
85
|
+
69
|
86
|
+
70
|
87
|
+
71
|
88
|
+
72
|
89
|
+
73
|
90
|
+
74
|
91
|
+
75
|
92
|
+
76
|
93
|
+
77
|
94
|
+
78
|
95
|
+
79
|
96
|
+
80
|
97
|
+
81
|
98
|
+
82
|
99
|
+
83
|
100
|
+
84
|
101
|
+
85
|
102
|
+
86
|
103
|
+
87
|
104
|
+
88
|
105
|
+
89
|
106
|
+
90
|
107
|
+
91
|
108
|
+
92
|
109
|
+
93
|
110
|
+
94
|
111
|
+
95
|
112
|
+
96
|
113
|
+
97
|
114
|
+
98
|
115
|
+
99
|
116
|
+
100
|
117
|
+
101
|
118
|
+
102
|
119
|
+
103
|
120
|
+
104
|
121
|
+
105
|
122
|
+
106
|
123
|
+
107
|
124
|
+
108
|
125
|
+
109
|
126
|
+
110
|
127
|
+
111
|
128
|
+
112
|
129
|
+
113
|
130
|
+
114
|
131
|
+
115
|
132
|
+
116
|
133
|
+
117
|
134
|
+
118
|
135
|
+
119
|
136
|
+
Wow.|
|
137
|
+
<p>
|
138
|
+
Holy cow multiline tags! A pipe (|) even!
|
139
|
+
PipesIgnored|PipesIgnored|PipesIgnored|
|
140
|
+
1|2|3
|
141
|
+
</p>
|
142
|
+
<div class='silent'>
|
143
|
+
this shouldn't evaluate but now it should!
|
144
|
+
</div>
|
145
|
+
<ul class='really cool'>
|
146
|
+
<li>a</li>
|
147
|
+
<li>b</li>
|
148
|
+
<li>c</li>
|
149
|
+
<li>d</li>
|
150
|
+
<li>e</li>
|
151
|
+
<li>f</li>
|
152
|
+
</ul>
|
153
|
+
<div class='of_divs_with_underscore' id='combo'>with this text</div>
|
154
|
+
foo
|
155
|
+
<div class='footer'>
|
156
|
+
<strong class='shout'>
|
157
|
+
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.
|
158
|
+
So, I'm just making it *really* long. God, I hope this works
|
159
|
+
</strong>
|
160
|
+
</div>
|
161
|
+
</body>
|
162
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div class='tags'>
|
2
|
+
<foo>1</foo>
|
3
|
+
<FOO>2</FOO>
|
4
|
+
<fooBAR>3</fooBAR>
|
5
|
+
<fooBar>4</fooBar>
|
6
|
+
<foo_bar>5</foo_bar>
|
7
|
+
<foo-bar>6</foo-bar>
|
8
|
+
<foo:bar>7</foo:bar>
|
9
|
+
<foo class='bar'>8</foo>
|
10
|
+
<fooBAr_baz:boom_bar>9</fooBAr_baz:boom_bar>
|
11
|
+
<foo13>10</foo13>
|
12
|
+
<foo2u>11</foo2u>
|
13
|
+
</div>
|
14
|
+
<div class='classes'>
|
15
|
+
<p class='foo bar' id='boom'></p>
|
16
|
+
<div class='fooBar'>a</div>
|
17
|
+
<div class='foo-bar'>b</div>
|
18
|
+
<div class='foo_bar'>c</div>
|
19
|
+
<div class='FOOBAR'>d</div>
|
20
|
+
<div class='foo16'>e</div>
|
21
|
+
<div class='123'>f</div>
|
22
|
+
<div class='foo2u'>g</div>
|
23
|
+
</div>
|
@@ -0,0 +1,89 @@
|
|
1
|
+
<div id='whitespace_test'>
|
2
|
+
<div class='text_area_test_area'>
|
3
|
+
<textarea>Oneline</textarea>
|
4
|
+
</div>
|
5
|
+
<textarea>BLAH
|
6
|
+
</textarea>
|
7
|
+
<div class='text_area_test_area'>
|
8
|
+
<textarea>Two
lines</textarea>
|
9
|
+
</div>
|
10
|
+
<textarea>BLAH
|
11
|
+
</textarea>
|
12
|
+
<div class='text_area_test_area'>
|
13
|
+
<textarea>Oneline</textarea>
|
14
|
+
</div>
|
15
|
+
<textarea>BLAH</textarea>
|
16
|
+
<div class='text_area_test_area'>
|
17
|
+
<textarea>Two
lines</textarea>
|
18
|
+
</div>
|
19
|
+
<textarea>BLAH</textarea>
|
20
|
+
<div id='flattened'>
|
21
|
+
<div class='text_area_test_area'>
|
22
|
+
<textarea>Two
lines</textarea>
|
23
|
+
</div>
|
24
|
+
<textarea>BLAH</textarea>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<div class='hithere'>
|
28
|
+
Foo bar
|
29
|
+
<pre>foo bar</pre>
|
30
|
+
<pre>foo
bar</pre>
|
31
|
+
<p><pre>foo
bar</pre></p>
|
32
|
+
<p>
|
33
|
+
foo
|
34
|
+
bar
|
35
|
+
</p>
|
36
|
+
</div>
|
37
|
+
<div class='foo'>
|
38
|
+
13
|
39
|
+
<textarea>
|
40
|
+
a
|
41
|
+
</textarea>
|
42
|
+
<textarea>
a</textarea>
|
43
|
+
</div>
|
44
|
+
<div id='whitespace_test'>
|
45
|
+
<div class='text_area_test_area'>
|
46
|
+
<textarea>Oneline</textarea>
|
47
|
+
</div>
|
48
|
+
<textarea>BLAH
|
49
|
+
</textarea>
|
50
|
+
<div class='text_area_test_area'>
|
51
|
+
<textarea>Two
lines</textarea>
|
52
|
+
</div>
|
53
|
+
<textarea>BLAH
|
54
|
+
</textarea>
|
55
|
+
<div class='text_area_test_area'>
|
56
|
+
<textarea>Oneline</textarea>
|
57
|
+
</div>
|
58
|
+
<textarea>BLAH</textarea>
|
59
|
+
<div class='text_area_test_area'>
|
60
|
+
<textarea>Two
lines</textarea>
|
61
|
+
</div>
|
62
|
+
<textarea>BLAH</textarea>
|
63
|
+
<div id='flattened'>
|
64
|
+
<div class='text_area_test_area'>
|
65
|
+
<textarea>Two
lines</textarea>
|
66
|
+
</div>
|
67
|
+
<textarea>BLAH</textarea>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
<div class='hithere'>
|
71
|
+
Foo bar
|
72
|
+
<pre>foo bar</pre>
|
73
|
+
<pre>foo
bar</pre>
|
74
|
+
<p><pre>foo
bar</pre></p>
|
75
|
+
<p>
|
76
|
+
foo
|
77
|
+
bar
|
78
|
+
</p>
|
79
|
+
<pre> ___
 ,o88888
 ,o8888888'
 ,:o:o:oooo. ,8O88Pd8888"
 ,.::.::o:ooooOoOoO. ,oO8O8Pd888'"
 ,.:.::o:ooOoOoOO8O8OOo.8OOPd8O8O"
 , ..:.::o:ooOoOOOO8OOOOo.FdO8O8"
 , ..:.::o:ooOoOO8O888O8O,COCOO"
 , . ..:.::o:ooOoOOOO8OOOOCOCO"
 . ..:.::o:ooOoOoOO8O8OCCCC"o
 . ..:.::o:ooooOoCoCCC"o:o
 . ..:.::o:o:,cooooCo"oo:o:
 ` . . ..:.:cocoooo"'o:o:::'
 .` . ..::ccccoc"'o:o:o:::'
 :.:. ,c:cccc"':.:.:.:.:.'
 ..:.:"'`::::c:"'..:.:.:.:.:.' http://www.chris.com/ASCII/
 ...:.'.:.::::"' . . . . .'
 .. . ....:."' ` . . . ''
 . . . ...."'
 .. . ."' -hrr-
 .


 It's a planet!
%strong This shouldn't be bold!</pre>
|
80
|
+
<strong>This should!</strong>
|
81
|
+
<textarea> ___ ___ ___ ___ 
 /\__\ /\ \ /\__\ /\__\
 /:/ / /::\ \ /::| | /:/ /
 /:/__/ /:/\:\ \ /:|:| | /:/ / 
 /::\ \ ___ /::\~\:\ \ /:/|:|__|__ /:/ / 
 /:/\:\ /\__\ /:/\:\ \:\__\ /:/ |::::\__\ /:/__/ 
 \/__\:\/:/ / \/__\:\/:/ / \/__/~~/:/ / \:\ \ 
 \::/ / \::/ / /:/ / \:\ \ 
 /:/ / /:/ / /:/ / \:\ \ 
 /:/ / /:/ / /:/ / \:\__\
 \/__/ \/__/ \/__/ \/__/
 
 Many
 thanks
 to
 http://www.network-science.de/ascii/
|
82
|
+
<strong>indeed!</strong></textarea>
|
83
|
+
</div>
|
84
|
+
<div class='foo'>
|
85
|
+
13
|
86
|
+
</div>
|
87
|
+
<pre> __ ______ __ ______
.----.| |--.|__ |.----.| |--..--------.| __ |
| __|| ||__ || __|| < | || __ |
|____||__|__||______||____||__|__||__|__|__||______|</pre>
|
88
|
+
<pre>foo
|
89
|
+
bar</pre>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<h2>This is a pretty complicated partial</h2>
|
2
|
+
<div class="partial">
|
3
|
+
<p>It has several nested partials,</p>
|
4
|
+
<ul>
|
5
|
+
<% 5.times do %>
|
6
|
+
<li>
|
7
|
+
<strong>Partial:</strong>
|
8
|
+
<% @nesting = 5 %>
|
9
|
+
<%= render :partial => 'haml/rhtml/av_partial_2' %>
|
10
|
+
<% end %>
|
11
|
+
</ul>
|
12
|
+
</div>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US'>
|
3
|
+
<head>
|
4
|
+
<title>Hampton Catlin Is Totally Awesome</title>
|
5
|
+
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1>
|
9
|
+
This is very much like the standard template,
|
10
|
+
except that it has some ActionView-specific stuff.
|
11
|
+
It's only used for benchmarking.
|
12
|
+
</h1>
|
13
|
+
<div class="crazy_partials">
|
14
|
+
<%= render :partial => 'haml/rhtml/av_partial_1' %>
|
15
|
+
</div>
|
16
|
+
<!-- You're In my house now! -->
|
17
|
+
<div class='header'>
|
18
|
+
Yes, ladies and gentileman. He is just that egotistical.
|
19
|
+
Fantastic! This should be multi-line output
|
20
|
+
The question is if this would translate! Ahah!
|
21
|
+
<%= 1 + 9 + 8 + 2 %>
|
22
|
+
<%# numbers should work and this should be ignored %>
|
23
|
+
</div>
|
24
|
+
<% 120.times do |number| -%>
|
25
|
+
<%= number %>
|
26
|
+
<% end -%>
|
27
|
+
<div id='body'><%= " Quotes should be loved! Just like people!" %></div>
|
28
|
+
Wow.
|
29
|
+
<p>
|
30
|
+
<%= "Holy cow " +
|
31
|
+
"multiline " +
|
32
|
+
"tags! " +
|
33
|
+
"A pipe (|) even!" %>
|
34
|
+
<%= [1, 2, 3].collect { |n| "PipesIgnored|" } %>
|
35
|
+
<%= [1, 2, 3].collect { |n|
|
36
|
+
n.to_s
|
37
|
+
}.join("|") %>
|
38
|
+
</p>
|
39
|
+
<div class='silent'>
|
40
|
+
<% foo = String.new
|
41
|
+
foo << "this"
|
42
|
+
foo << " shouldn't"
|
43
|
+
foo << " evaluate" %>
|
44
|
+
<%= foo + "but now it should!" %>
|
45
|
+
<%# Woah crap a comment! %>
|
46
|
+
</div>
|
47
|
+
<ul class='really cool'>
|
48
|
+
<% ('a'..'f').each do |a|%>
|
49
|
+
<li><%= a %>
|
50
|
+
<% end %>
|
51
|
+
<div class='of_divs_with_underscore' id='combo'><%= @should_eval = "with this text" %></div>
|
52
|
+
<%= [ 104, 101, 108, 108, 111 ].map do |byte|
|
53
|
+
byte.chr
|
54
|
+
end %>
|
55
|
+
<div class='footer'>
|
56
|
+
<strong class='shout'>
|
57
|
+
<%= "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" +
|
58
|
+
" So, I'm just making it *really* long. God, I hope this works" %>
|
59
|
+
</strong>
|
60
|
+
</div>
|
61
|
+
</body>
|
62
|
+
</html>
|