radiant 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of radiant might be problematic. Click here for more details.
- data/CHANGELOG +15 -0
- data/CONTRIBUTORS +8 -0
- data/app/controllers/admin/page_controller.rb +1 -11
- data/app/controllers/admin/welcome_controller.rb +5 -6
- data/app/controllers/application.rb +2 -0
- data/app/controllers/site_controller.rb +1 -0
- data/app/helpers/admin/page_helper.rb +36 -0
- data/app/helpers/admin/regions_helper.rb +28 -0
- data/app/helpers/admin/user_helper.rb +6 -0
- data/app/helpers/application_helper.rb +2 -1
- data/app/models/user.rb +7 -8
- data/app/views/admin/extension/index.html.haml +28 -0
- data/app/views/admin/layout/edit.html.haml +44 -0
- data/app/views/admin/layout/index.html.haml +25 -0
- data/app/views/admin/layout/remove.html.haml +16 -0
- data/app/views/admin/page/_meta_row.html.haml +6 -0
- data/app/views/admin/page/_node.html.haml +25 -0
- data/app/views/admin/page/_part.html.haml +17 -0
- data/app/views/admin/page/_tag_reference.html.haml +3 -0
- data/app/views/admin/page/children.html.haml +2 -0
- data/app/views/admin/page/edit.html.haml +114 -0
- data/app/views/admin/page/index.html.haml +28 -0
- data/app/views/admin/page/remove.html.haml +20 -0
- data/app/views/admin/snippet/edit.html.haml +36 -0
- data/app/views/admin/snippet/index.html.haml +20 -0
- data/app/views/admin/snippet/remove.html.haml +19 -0
- data/app/views/admin/user/edit.html.haml +80 -0
- data/app/views/admin/user/index.html.haml +23 -0
- data/app/views/admin/user/preferences.html.haml +28 -0
- data/app/views/admin/user/remove.html.haml +18 -0
- data/app/views/admin/welcome/login.html.haml +44 -0
- data/app/views/layouts/application.html.haml +54 -0
- data/app/views/site/not_found.html.haml +3 -0
- data/db/migrate/019_add_salt_to_users.rb +11 -0
- data/db/schema.rb +2 -1
- data/lib/login_system.rb +1 -0
- data/lib/radiant.rb +1 -1
- data/lib/radiant/admin_ui.rb +65 -0
- data/lib/radiant/admin_ui/region_partials.rb +18 -0
- data/lib/radiant/admin_ui/region_set.rb +35 -0
- data/lib/tasks/extensions.rake +33 -0
- data/public/javascripts/admin/admin.js +8 -2
- data/public/javascripts/admin/sitemap.js +2 -1
- data/public/stylesheets/admin/main.css +4 -0
- data/spec/controllers/admin/abstract_model_controller_spec.rb +2 -0
- data/spec/controllers/admin/page_controller_spec.rb +3 -28
- data/spec/controllers/admin/user_controller_spec.rb +1 -1
- data/spec/controllers/admin/welcome_controller_spec.rb +26 -0
- data/spec/helpers/admin/page_helper_spec.rb +4 -0
- data/spec/helpers/admin/regions_helper_spec.rb +47 -0
- data/spec/helpers/admin/user_helper_spec.rb +7 -0
- data/spec/helpers/application_helper_spec.rb +7 -3
- data/spec/lib/login_system_spec.rb +5 -0
- data/spec/lib/radiant/admin_ui/region_partials_spec.rb +35 -0
- data/spec/lib/radiant/admin_ui/region_set_spec.rb +61 -0
- data/spec/lib/radiant/admin_ui_spec.rb +74 -18
- data/spec/models/user_spec.rb +11 -4
- data/spec/scenarios/users_scenario.rb +2 -2
- data/vendor/plugins/haml/MIT-LICENSE +20 -0
- data/vendor/plugins/haml/README.rdoc +319 -0
- data/vendor/plugins/haml/Rakefile +158 -0
- data/vendor/plugins/haml/TODO +9 -0
- data/vendor/plugins/haml/VERSION +1 -0
- data/vendor/plugins/haml/bin/css2sass +7 -0
- data/vendor/plugins/haml/bin/haml +8 -0
- data/vendor/plugins/haml/bin/html2haml +7 -0
- data/vendor/plugins/haml/bin/sass +8 -0
- data/vendor/plugins/haml/extra/haml-mode.el +328 -0
- data/vendor/plugins/haml/extra/sass-mode.el +88 -0
- data/vendor/plugins/haml/init.rb +2 -0
- data/vendor/plugins/haml/lib/haml.rb +977 -0
- data/vendor/plugins/haml/lib/haml/buffer.rb +229 -0
- data/vendor/plugins/haml/lib/haml/engine.rb +274 -0
- data/vendor/plugins/haml/lib/haml/error.rb +23 -0
- data/vendor/plugins/haml/lib/haml/exec.rb +347 -0
- data/vendor/plugins/haml/lib/haml/filters.rb +249 -0
- data/vendor/plugins/haml/lib/haml/helpers.rb +413 -0
- data/vendor/plugins/haml/lib/haml/helpers/action_view_extensions.rb +45 -0
- data/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb +122 -0
- data/vendor/plugins/haml/lib/haml/html.rb +188 -0
- data/vendor/plugins/haml/lib/haml/precompiler.rb +757 -0
- data/vendor/plugins/haml/lib/haml/template.rb +43 -0
- data/vendor/plugins/haml/lib/haml/template/patch.rb +58 -0
- data/vendor/plugins/haml/lib/haml/template/plugin.rb +72 -0
- data/vendor/plugins/haml/lib/sass.rb +833 -0
- data/vendor/plugins/haml/lib/sass/constant.rb +245 -0
- data/vendor/plugins/haml/lib/sass/constant/color.rb +101 -0
- data/vendor/plugins/haml/lib/sass/constant/literal.rb +53 -0
- data/vendor/plugins/haml/lib/sass/constant/number.rb +87 -0
- data/vendor/plugins/haml/lib/sass/constant/operation.rb +30 -0
- data/vendor/plugins/haml/lib/sass/constant/string.rb +22 -0
- data/vendor/plugins/haml/lib/sass/css.rb +378 -0
- data/vendor/plugins/haml/lib/sass/engine.rb +459 -0
- data/vendor/plugins/haml/lib/sass/error.rb +35 -0
- data/vendor/plugins/haml/lib/sass/plugin.rb +165 -0
- data/vendor/plugins/haml/lib/sass/plugin/merb.rb +56 -0
- data/vendor/plugins/haml/lib/sass/plugin/rails.rb +24 -0
- data/vendor/plugins/haml/lib/sass/tree/attr_node.rb +53 -0
- data/vendor/plugins/haml/lib/sass/tree/comment_node.rb +20 -0
- data/vendor/plugins/haml/lib/sass/tree/directive_node.rb +46 -0
- data/vendor/plugins/haml/lib/sass/tree/node.rb +42 -0
- data/vendor/plugins/haml/lib/sass/tree/rule_node.rb +89 -0
- data/vendor/plugins/haml/lib/sass/tree/value_node.rb +16 -0
- data/vendor/plugins/haml/test/benchmark.rb +82 -0
- data/vendor/plugins/haml/test/haml/engine_test.rb +587 -0
- data/vendor/plugins/haml/test/haml/helper_test.rb +187 -0
- data/vendor/plugins/haml/test/haml/html2haml_test.rb +60 -0
- data/vendor/plugins/haml/test/haml/markaby/standard.mab +52 -0
- data/vendor/plugins/haml/test/haml/mocks/article.rb +6 -0
- data/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml +16 -0
- data/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml +11 -0
- data/vendor/plugins/haml/test/haml/results/filters.xhtml +82 -0
- data/vendor/plugins/haml/test/haml/results/helpers.xhtml +94 -0
- data/vendor/plugins/haml/test/haml/results/helpful.xhtml +10 -0
- data/vendor/plugins/haml/test/haml/results/just_stuff.xhtml +64 -0
- data/vendor/plugins/haml/test/haml/results/list.xhtml +12 -0
- data/vendor/plugins/haml/test/haml/results/original_engine.xhtml +22 -0
- data/vendor/plugins/haml/test/haml/results/partials.xhtml +21 -0
- data/vendor/plugins/haml/test/haml/results/silent_script.xhtml +74 -0
- data/vendor/plugins/haml/test/haml/results/standard.xhtml +42 -0
- data/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml +28 -0
- data/vendor/plugins/haml/test/haml/results/very_basic.xhtml +7 -0
- data/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml +94 -0
- data/vendor/plugins/haml/test/haml/rhtml/_av_partial_1.rhtml +12 -0
- data/vendor/plugins/haml/test/haml/rhtml/_av_partial_2.rhtml +8 -0
- data/vendor/plugins/haml/test/haml/rhtml/action_view.rhtml +62 -0
- data/vendor/plugins/haml/test/haml/rhtml/standard.rhtml +54 -0
- data/vendor/plugins/haml/test/haml/template_test.rb +168 -0
- data/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml +9 -0
- data/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml +5 -0
- data/vendor/plugins/haml/test/haml/templates/_partial.haml +8 -0
- data/vendor/plugins/haml/test/haml/templates/_text_area.haml +3 -0
- data/vendor/plugins/haml/test/haml/templates/action_view.haml +47 -0
- data/vendor/plugins/haml/test/haml/templates/breakage.haml +8 -0
- data/vendor/plugins/haml/test/haml/templates/content_for_layout.haml +10 -0
- data/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml +11 -0
- data/vendor/plugins/haml/test/haml/templates/filters.haml +81 -0
- data/vendor/plugins/haml/test/haml/templates/helpers.haml +69 -0
- data/vendor/plugins/haml/test/haml/templates/helpful.haml +11 -0
- data/vendor/plugins/haml/test/haml/templates/just_stuff.haml +77 -0
- data/vendor/plugins/haml/test/haml/templates/list.haml +12 -0
- data/vendor/plugins/haml/test/haml/templates/original_engine.haml +17 -0
- data/vendor/plugins/haml/test/haml/templates/partialize.haml +1 -0
- data/vendor/plugins/haml/test/haml/templates/partials.haml +12 -0
- data/vendor/plugins/haml/test/haml/templates/silent_script.haml +40 -0
- data/vendor/plugins/haml/test/haml/templates/standard.haml +42 -0
- data/vendor/plugins/haml/test/haml/templates/tag_parsing.haml +24 -0
- data/vendor/plugins/haml/test/haml/templates/very_basic.haml +4 -0
- data/vendor/plugins/haml/test/haml/templates/whitespace_handling.haml +87 -0
- data/vendor/plugins/haml/test/haml/test_helper.rb +15 -0
- data/vendor/plugins/haml/test/profile.rb +65 -0
- data/vendor/plugins/haml/test/sass/engine_test.rb +276 -0
- data/vendor/plugins/haml/test/sass/plugin_test.rb +159 -0
- data/vendor/plugins/haml/test/sass/results/alt.css +4 -0
- data/vendor/plugins/haml/test/sass/results/basic.css +9 -0
- data/vendor/plugins/haml/test/sass/results/compact.css +5 -0
- data/vendor/plugins/haml/test/sass/results/complex.css +87 -0
- data/vendor/plugins/haml/test/sass/results/compressed.css +1 -0
- data/vendor/plugins/haml/test/sass/results/constants.css +14 -0
- data/vendor/plugins/haml/test/sass/results/expanded.css +19 -0
- data/vendor/plugins/haml/test/sass/results/import.css +29 -0
- data/vendor/plugins/haml/test/sass/results/mixins.css +95 -0
- data/vendor/plugins/haml/test/sass/results/multiline.css +24 -0
- data/vendor/plugins/haml/test/sass/results/nested.css +22 -0
- data/vendor/plugins/haml/test/sass/results/parent_ref.css +13 -0
- data/vendor/plugins/haml/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/vendor/plugins/haml/test/sass/results/subdir/subdir.css +1 -0
- data/vendor/plugins/haml/test/sass/templates/_partial.sass +2 -0
- data/vendor/plugins/haml/test/sass/templates/alt.sass +16 -0
- data/vendor/plugins/haml/test/sass/templates/basic.sass +23 -0
- data/vendor/plugins/haml/test/sass/templates/bork.sass +2 -0
- data/vendor/plugins/haml/test/sass/templates/bork2.sass +2 -0
- data/vendor/plugins/haml/test/sass/templates/compact.sass +17 -0
- data/vendor/plugins/haml/test/sass/templates/complex.sass +310 -0
- data/vendor/plugins/haml/test/sass/templates/compressed.sass +15 -0
- data/vendor/plugins/haml/test/sass/templates/constants.sass +97 -0
- data/vendor/plugins/haml/test/sass/templates/expanded.sass +17 -0
- data/vendor/plugins/haml/test/sass/templates/import.sass +11 -0
- data/vendor/plugins/haml/test/sass/templates/importee.sass +14 -0
- data/vendor/plugins/haml/test/sass/templates/mixins.sass +76 -0
- data/vendor/plugins/haml/test/sass/templates/multiline.sass +20 -0
- data/vendor/plugins/haml/test/sass/templates/nested.sass +25 -0
- data/vendor/plugins/haml/test/sass/templates/parent_ref.sass +25 -0
- data/vendor/plugins/haml/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/vendor/plugins/haml/test/sass/templates/subdir/subdir.sass +6 -0
- metadata +185 -24
- data/app/views/admin/extension/index.html.erb +0 -40
- data/app/views/admin/layout/edit.html.erb +0 -39
- data/app/views/admin/layout/index.html.erb +0 -38
- data/app/views/admin/layout/remove.html.erb +0 -17
- data/app/views/admin/page/_meta_row.html.erb +0 -4
- data/app/views/admin/page/_node.html.erb +0 -28
- data/app/views/admin/page/_part.html.erb +0 -13
- data/app/views/admin/page/_tag_reference.html.erb +0 -4
- data/app/views/admin/page/children.html.erb +0 -4
- data/app/views/admin/page/edit.html.erb +0 -140
- data/app/views/admin/page/index.html.erb +0 -31
- data/app/views/admin/page/remove.html.erb +0 -14
- data/app/views/admin/snippet/edit.html.erb +0 -29
- data/app/views/admin/snippet/index.html.erb +0 -36
- data/app/views/admin/snippet/remove.html.erb +0 -16
- data/app/views/admin/user/edit.html.erb +0 -54
- data/app/views/admin/user/index.html.erb +0 -43
- data/app/views/admin/user/preferences.html.erb +0 -29
- data/app/views/admin/user/remove.html.erb +0 -16
- data/app/views/admin/welcome/login.html.erb +0 -51
- data/app/views/layouts/application.html.erb +0 -83
- data/app/views/site/not_found.html.erb +0 -3
@@ -0,0 +1,10 @@
|
|
1
|
+
<div class='article' id='article_1'>
|
2
|
+
<h1>Hello</h1>
|
3
|
+
<div>World</div>
|
4
|
+
</div>
|
5
|
+
<div class='article' id='id_article_1'>id</div>
|
6
|
+
<div class='article class' id='article_1'>class</div>
|
7
|
+
<div class='article class' id='id_article_1'>id class</div>
|
8
|
+
<div class='article full' id='article_1'>boo</div>
|
9
|
+
<div class='article full' id='article_1'>moo</div>
|
10
|
+
<div class='article articleFull' id='article_1'>foo</div>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<?xml version='1.0' encoding='utf-8' ?>
|
2
|
+
<?xml version='1.0' encoding='iso-8859-1' ?>
|
3
|
+
<?xml version='1.0' encoding='utf-8' ?>
|
4
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
6
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
7
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
8
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
9
|
+
<strong apos="Foo's bar!">Boo!</strong>
|
10
|
+
Embedded? false!
|
11
|
+
Embedded? true!
|
12
|
+
Embedded? true!
|
13
|
+
Embedded? twice! true!
|
14
|
+
Embedded? one af"t"er another!
|
15
|
+
<p>Embedded? false!</p>
|
16
|
+
<p>Embedded? true!</p>
|
17
|
+
<p>Embedded? true!</p>
|
18
|
+
<p>Embedded? twice! true!</p>
|
19
|
+
<p>Embedded? one af"t"er another!</p>
|
20
|
+
<div class='render'><em>wow!</em></div>
|
21
|
+
stuff followed by whitespace
|
22
|
+
<strong>block with whitespace</strong>
|
23
|
+
<p>
|
24
|
+
Escape
|
25
|
+
- character
|
26
|
+
%p foo
|
27
|
+
yee\ha
|
28
|
+
</p>
|
29
|
+
<!-- Short comment -->
|
30
|
+
<!--
|
31
|
+
This is a block comment
|
32
|
+
cool, huh?
|
33
|
+
<strong>there can even be sub-tags!</strong>
|
34
|
+
Or script!
|
35
|
+
-->
|
36
|
+
<p class=''>class attribute should appear!</p>
|
37
|
+
<p>this attribute shouldn't appear</p>
|
38
|
+
<!--[if lte IE6]> conditional comment! <![endif]-->
|
39
|
+
<!--[if gte IE7]>
|
40
|
+
<p>Block conditional comment</p>
|
41
|
+
<div>
|
42
|
+
<h1>Cool, eh?</h1>
|
43
|
+
</div>
|
44
|
+
<![endif]-->
|
45
|
+
<!--[if gte IE5.2]>
|
46
|
+
Woah a period.
|
47
|
+
<![endif]-->
|
48
|
+
testtest
|
49
|
+
<br />
|
50
|
+
<meta foo='bar' />
|
51
|
+
<img />
|
52
|
+
<hr />
|
53
|
+
<link />
|
54
|
+
<script>Inline content</script>
|
55
|
+
<br>
|
56
|
+
Nested content
|
57
|
+
</br>
|
58
|
+
<p class='article bar foo' id='article_1'>Blah</p>
|
59
|
+
<p class='article foo' id='article_1'>Blah</p>
|
60
|
+
<p class='article quux qux' id='article_1'>Blump</p>
|
61
|
+
Woah inner quotes
|
62
|
+
<p class='dynamic_quote' dyn='3' quotes="single '">
|
63
|
+
</p>
|
64
|
+
<p class='dynamic_self_closing' dyn='3' />
|
@@ -0,0 +1,22 @@
|
|
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>
|
17
|
+
This is some text that's in a pre block!
|
18
|
+
Let's see what happens when it's rendered! What about now, since we're on a new line?
|
19
|
+
</pre>
|
20
|
+
</div>
|
21
|
+
</head>
|
22
|
+
</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,42 @@
|
|
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
|
+
Wow.|
|
17
|
+
<p>
|
18
|
+
Holy cow multiline tags! A pipe (|) even!
|
19
|
+
PipesIgnored|PipesIgnored|PipesIgnored|
|
20
|
+
1|2|3
|
21
|
+
</p>
|
22
|
+
<div class='silent'>
|
23
|
+
this shouldn't evaluate but now it should!
|
24
|
+
</div>
|
25
|
+
<ul class='really cool'>
|
26
|
+
<li>a</li>
|
27
|
+
<li>b</li>
|
28
|
+
<li>c</li>
|
29
|
+
<li>d</li>
|
30
|
+
<li>e</li>
|
31
|
+
<li>f</li>
|
32
|
+
</ul>
|
33
|
+
<div class='of_divs_with_underscore' id='combo'>with this text</div>
|
34
|
+
hello
|
35
|
+
<div class='footer'>
|
36
|
+
<strong class='shout'>
|
37
|
+
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.
|
38
|
+
So, I'm just making it *really* long. God, I hope this works
|
39
|
+
</strong>
|
40
|
+
</div>
|
41
|
+
</body>
|
42
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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'>
|
16
|
+
</p>
|
17
|
+
<div class='fooBar'>a</div>
|
18
|
+
<div class='foo-bar'>b</div>
|
19
|
+
<div class='foo_bar'>c</div>
|
20
|
+
<div class='FOOBAR'>d</div>
|
21
|
+
<div class='foo16'>e</div>
|
22
|
+
<div class='123'>f</div>
|
23
|
+
<div class='foo2u'>g</div>
|
24
|
+
</div>
|
25
|
+
<div class='broken'>
|
26
|
+
<foo><{ :a => :b }</foo>
|
27
|
+
<div class='foo'>>{ :c => :d }</div>
|
28
|
+
</div>
|
@@ -0,0 +1,94 @@
|
|
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>
a
</textarea><textarea>
b
</textarea><textarea>
c
</textarea>
|
40
|
+
</div>
|
41
|
+
<div id='whitespace_test'>
|
42
|
+
<div class='text_area_test_area'>
|
43
|
+
<textarea>Oneline</textarea>
|
44
|
+
</div>
|
45
|
+
<textarea>BLAH
|
46
|
+
</textarea>
|
47
|
+
<div class='text_area_test_area'>
|
48
|
+
<textarea>Two
lines</textarea>
|
49
|
+
</div>
|
50
|
+
<textarea>BLAH
|
51
|
+
</textarea>
|
52
|
+
<div class='text_area_test_area'>
|
53
|
+
<textarea>Oneline</textarea>
|
54
|
+
</div>
|
55
|
+
<textarea>BLAH
</textarea>
|
56
|
+
<div class='text_area_test_area'>
|
57
|
+
<textarea>Two
lines</textarea>
|
58
|
+
</div>
|
59
|
+
<textarea>BLAH
</textarea>
|
60
|
+
<div id='flattened'>
|
61
|
+
<div class='text_area_test_area'>
|
62
|
+
<textarea>Two
lines</textarea>
|
63
|
+
</div>
|
64
|
+
<textarea>BLAH
</textarea>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
<div class='hithere'>
|
68
|
+
Foo bar
|
69
|
+
<pre>foo bar</pre>
|
70
|
+
<pre>foo
bar</pre>
|
71
|
+
<p><pre>foo
bar</pre></p>
|
72
|
+
<p>
|
73
|
+
foo
|
74
|
+
bar
|
75
|
+
</p>
|
76
|
+
<pre>
|
77
|
+
___
 ,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!

|
78
|
+
</pre>
|
79
|
+
<strong>This should!</strong>
|
80
|
+
<textarea>
|
81
|
+
___ ___ ___ ___ 
 /\__\ /\ \ /\__\ /\__\
 /:/ / /::\ \ /::| | /:/ /
 /:/__/ /:/\:\ \ /:|:| | /:/ / 
 /::\ \ ___ /::\~\:\ \ /:/|:|__|__ /:/ / 
 /:/\:\ /\__\ /:/\:\ \:\__\ /:/ |::::\__\ /:/__/ 
 \/__\:\/:/ / \/__\:\/:/ / \/__/~~/:/ / \:\ \ 
 \::/ / \::/ / /:/ / \:\ \ 
 /:/ / /:/ / /:/ / \:\ \ 
 /:/ / /:/ / /:/ / \:\__\
 \/__/ \/__/ \/__/ \/__/

 Many
 thanks
 to
 http://www.network-science.de/ascii/

|
82
|
+
<strong>indeed!</strong>
|
83
|
+
</textarea>
|
84
|
+
</div>
|
85
|
+
<div class='foo'>
|
86
|
+
13
|
87
|
+
</div>
|
88
|
+
<pre>
|
89
|
+
__ ______ __ ______
.----.| |--.|__ |.----.| |--..--------.| __ |
| __|| ||__ || __|| < | || __ |
|____||__|__||______||____||__|__||__|__|__||______|

|
90
|
+
</pre>
|
91
|
+
<pre>
|
92
|
+
foo

|
93
|
+
bar
|
94
|
+
</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>
|