ymdp 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/VERSION +1 -1
- data/doc/ActionView.html +175 -0
- data/doc/ActionView/Helpers.html +175 -0
- data/doc/ActionView/Helpers/TagHelper.html +439 -0
- data/doc/Application.html +295 -0
- data/doc/LICENSE.html +158 -0
- data/doc/Object.html +218 -0
- data/doc/README_rdoc.html +147 -0
- data/doc/YMDP.html +232 -0
- data/doc/YMDP/ApplicationView.html +563 -0
- data/doc/YMDP/AssetTagHelper.html +235 -0
- data/doc/YMDP/Base.html +560 -0
- data/doc/YMDP/Compiler.html +178 -0
- data/doc/YMDP/Compiler/Base.html +1181 -0
- data/doc/YMDP/Compiler/Domains.html +493 -0
- data/doc/YMDP/Compiler/Options.html +265 -0
- data/doc/YMDP/Compiler/Template.html +175 -0
- data/doc/YMDP/Compiler/Template/Base.html +911 -0
- data/doc/YMDP/Compiler/Template/CoffeeScript.html +236 -0
- data/doc/YMDP/Compiler/Template/JavaScript.html +237 -0
- data/doc/YMDP/Compiler/Template/View.html +495 -0
- data/doc/YMDP/Compiler/Template/YRB.html +469 -0
- data/doc/YMDP/Configuration.html +175 -0
- data/doc/YMDP/Configuration/Base.html +426 -0
- data/doc/YMDP/Configuration/Config.html +553 -0
- data/doc/YMDP/Configuration/Servers.html +265 -0
- data/doc/YMDP/Configuration/Setter.html +580 -0
- data/doc/YMDP/FormTagHelper.html +298 -0
- data/doc/YMDP/GitHelper.html +298 -0
- data/doc/YMDP/LinkTagHelper.html +299 -0
- data/doc/YMDP/View.html +239 -0
- data/doc/created.rid +18 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +134 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +401 -0
- data/lib/ymdp/compiler/template.rb +5 -1
- data/lib/ymdp/view/application_view.rb +10 -5
- data/ymdp.gemspec +69 -2
- metadata +120 -42
data/Gemfile
CHANGED
@@ -5,6 +5,7 @@ gem "polyglot"
|
|
5
5
|
gem "treetop"
|
6
6
|
gem "cucumber"
|
7
7
|
gem "haml"
|
8
|
+
gem "sass"
|
8
9
|
gem "json"
|
9
10
|
gem "hpricot"
|
10
11
|
gem "mime-types", :require => "mime/types"
|
@@ -23,4 +24,4 @@ gem "yrb"
|
|
23
24
|
gem "idiom"
|
24
25
|
gem "epic"
|
25
26
|
|
26
|
-
# bin_path "vendor/bin"
|
27
|
+
# bin_path "vendor/bin"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.10.0
|
data/doc/ActionView.html
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module ActionView - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/ymdp/view/tag_helper.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div id="project-metadata">
|
65
|
+
<nav id="fileindex-section" class="section project-section">
|
66
|
+
<h3 class="section-header">Pages</h3>
|
67
|
+
|
68
|
+
<ul>
|
69
|
+
|
70
|
+
<li class="file"><a href="./LICENSE.html">LICENSE</a>
|
71
|
+
|
72
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</nav>
|
76
|
+
|
77
|
+
<nav id="classindex-section" class="section project-section">
|
78
|
+
<h3 class="section-header">Class and Module Index</h3>
|
79
|
+
|
80
|
+
<ul class="link-list">
|
81
|
+
|
82
|
+
<li><a href="./YMDP.html">YMDP</a>
|
83
|
+
|
84
|
+
<li><a href="./YMDP/ApplicationView.html">YMDP::ApplicationView</a>
|
85
|
+
|
86
|
+
<li><a href="./YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
|
87
|
+
|
88
|
+
<li><a href="./YMDP/Base.html">YMDP::Base</a>
|
89
|
+
|
90
|
+
<li><a href="./YMDP/Compiler.html">YMDP::Compiler</a>
|
91
|
+
|
92
|
+
<li><a href="./YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
|
93
|
+
|
94
|
+
<li><a href="./YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
|
95
|
+
|
96
|
+
<li><a href="./YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
|
97
|
+
|
98
|
+
<li><a href="./YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
|
99
|
+
|
100
|
+
<li><a href="./YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
|
101
|
+
|
102
|
+
<li><a href="./YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
|
103
|
+
|
104
|
+
<li><a href="./YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
|
105
|
+
|
106
|
+
<li><a href="./YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
|
107
|
+
|
108
|
+
<li><a href="./YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
|
109
|
+
|
110
|
+
<li><a href="./YMDP/Configuration.html">YMDP::Configuration</a>
|
111
|
+
|
112
|
+
<li><a href="./YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
|
113
|
+
|
114
|
+
<li><a href="./YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
|
115
|
+
|
116
|
+
<li><a href="./YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
|
117
|
+
|
118
|
+
<li><a href="./YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
|
119
|
+
|
120
|
+
<li><a href="./YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
|
121
|
+
|
122
|
+
<li><a href="./YMDP/GitHelper.html">YMDP::GitHelper</a>
|
123
|
+
|
124
|
+
<li><a href="./YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
|
125
|
+
|
126
|
+
<li><a href="./YMDP/View.html">YMDP::View</a>
|
127
|
+
|
128
|
+
<li><a href="./ActionView.html">ActionView</a>
|
129
|
+
|
130
|
+
<li><a href="./ActionView/Helpers.html">ActionView::Helpers</a>
|
131
|
+
|
132
|
+
<li><a href="./ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
|
133
|
+
|
134
|
+
<li><a href="./Application.html">Application</a>
|
135
|
+
|
136
|
+
<li><a href="./Object.html">Object</a>
|
137
|
+
|
138
|
+
</ul>
|
139
|
+
</nav>
|
140
|
+
|
141
|
+
</div>
|
142
|
+
</nav>
|
143
|
+
|
144
|
+
<div id="documentation">
|
145
|
+
<h1 class="module">module ActionView</h1>
|
146
|
+
|
147
|
+
<div id="description" class="description">
|
148
|
+
|
149
|
+
</div><!-- description -->
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<!-- Methods -->
|
164
|
+
|
165
|
+
</section><!-- 5Buntitled-5D -->
|
166
|
+
|
167
|
+
</div><!-- documentation -->
|
168
|
+
|
169
|
+
|
170
|
+
<footer id="validator-badges">
|
171
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
172
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
173
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
174
|
+
</footer>
|
175
|
+
|
@@ -0,0 +1,175 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module ActionView::Helpers - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/ymdp/view/tag_helper.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div id="project-metadata">
|
65
|
+
<nav id="fileindex-section" class="section project-section">
|
66
|
+
<h3 class="section-header">Pages</h3>
|
67
|
+
|
68
|
+
<ul>
|
69
|
+
|
70
|
+
<li class="file"><a href="../LICENSE.html">LICENSE</a>
|
71
|
+
|
72
|
+
<li class="file"><a href="../README_rdoc.html">README</a>
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</nav>
|
76
|
+
|
77
|
+
<nav id="classindex-section" class="section project-section">
|
78
|
+
<h3 class="section-header">Class and Module Index</h3>
|
79
|
+
|
80
|
+
<ul class="link-list">
|
81
|
+
|
82
|
+
<li><a href="../YMDP.html">YMDP</a>
|
83
|
+
|
84
|
+
<li><a href="../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
|
85
|
+
|
86
|
+
<li><a href="../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
|
87
|
+
|
88
|
+
<li><a href="../YMDP/Base.html">YMDP::Base</a>
|
89
|
+
|
90
|
+
<li><a href="../YMDP/Compiler.html">YMDP::Compiler</a>
|
91
|
+
|
92
|
+
<li><a href="../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
|
93
|
+
|
94
|
+
<li><a href="../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
|
95
|
+
|
96
|
+
<li><a href="../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
|
97
|
+
|
98
|
+
<li><a href="../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
|
99
|
+
|
100
|
+
<li><a href="../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
|
101
|
+
|
102
|
+
<li><a href="../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
|
103
|
+
|
104
|
+
<li><a href="../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
|
105
|
+
|
106
|
+
<li><a href="../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
|
107
|
+
|
108
|
+
<li><a href="../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
|
109
|
+
|
110
|
+
<li><a href="../YMDP/Configuration.html">YMDP::Configuration</a>
|
111
|
+
|
112
|
+
<li><a href="../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
|
113
|
+
|
114
|
+
<li><a href="../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
|
115
|
+
|
116
|
+
<li><a href="../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
|
117
|
+
|
118
|
+
<li><a href="../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
|
119
|
+
|
120
|
+
<li><a href="../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
|
121
|
+
|
122
|
+
<li><a href="../YMDP/GitHelper.html">YMDP::GitHelper</a>
|
123
|
+
|
124
|
+
<li><a href="../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
|
125
|
+
|
126
|
+
<li><a href="../YMDP/View.html">YMDP::View</a>
|
127
|
+
|
128
|
+
<li><a href="../ActionView.html">ActionView</a>
|
129
|
+
|
130
|
+
<li><a href="../ActionView/Helpers.html">ActionView::Helpers</a>
|
131
|
+
|
132
|
+
<li><a href="../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
|
133
|
+
|
134
|
+
<li><a href="../Application.html">Application</a>
|
135
|
+
|
136
|
+
<li><a href="../Object.html">Object</a>
|
137
|
+
|
138
|
+
</ul>
|
139
|
+
</nav>
|
140
|
+
|
141
|
+
</div>
|
142
|
+
</nav>
|
143
|
+
|
144
|
+
<div id="documentation">
|
145
|
+
<h1 class="module">module ActionView::Helpers</h1>
|
146
|
+
|
147
|
+
<div id="description" class="description">
|
148
|
+
|
149
|
+
</div><!-- description -->
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<!-- Methods -->
|
164
|
+
|
165
|
+
</section><!-- 5Buntitled-5D -->
|
166
|
+
|
167
|
+
</div><!-- documentation -->
|
168
|
+
|
169
|
+
|
170
|
+
<footer id="validator-badges">
|
171
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
172
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
173
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
174
|
+
</footer>
|
175
|
+
|
@@ -0,0 +1,439 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module ActionView::Helpers::TagHelper - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../index.html">Home</a>
|
28
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/ymdp/view/tag_helper.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
<!-- Included Modules -->
|
61
|
+
<nav id="includes-section" class="section">
|
62
|
+
<h3 class="section-header">Included Modules</h3>
|
63
|
+
|
64
|
+
<ul class="link-list">
|
65
|
+
|
66
|
+
|
67
|
+
<li><span class="include">ERB::Util</span>
|
68
|
+
|
69
|
+
|
70
|
+
</ul>
|
71
|
+
</nav>
|
72
|
+
|
73
|
+
<!-- Method Quickref -->
|
74
|
+
<nav id="method-list-section" class="section">
|
75
|
+
<h3 class="section-header">Methods</h3>
|
76
|
+
|
77
|
+
<ul class="link-list">
|
78
|
+
|
79
|
+
<li><a href="#method-i-cdata_section">#cdata_section</a>
|
80
|
+
|
81
|
+
<li><a href="#method-i-content_tag">#content_tag</a>
|
82
|
+
|
83
|
+
<li><a href="#method-i-escape_once">#escape_once</a>
|
84
|
+
|
85
|
+
<li><a href="#method-i-tag">#tag</a>
|
86
|
+
|
87
|
+
</ul>
|
88
|
+
</nav>
|
89
|
+
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<div id="project-metadata">
|
93
|
+
<nav id="fileindex-section" class="section project-section">
|
94
|
+
<h3 class="section-header">Pages</h3>
|
95
|
+
|
96
|
+
<ul>
|
97
|
+
|
98
|
+
<li class="file"><a href="../../LICENSE.html">LICENSE</a>
|
99
|
+
|
100
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
101
|
+
|
102
|
+
</ul>
|
103
|
+
</nav>
|
104
|
+
|
105
|
+
<nav id="classindex-section" class="section project-section">
|
106
|
+
<h3 class="section-header">Class and Module Index</h3>
|
107
|
+
|
108
|
+
<ul class="link-list">
|
109
|
+
|
110
|
+
<li><a href="../../YMDP.html">YMDP</a>
|
111
|
+
|
112
|
+
<li><a href="../../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
|
113
|
+
|
114
|
+
<li><a href="../../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
|
115
|
+
|
116
|
+
<li><a href="../../YMDP/Base.html">YMDP::Base</a>
|
117
|
+
|
118
|
+
<li><a href="../../YMDP/Compiler.html">YMDP::Compiler</a>
|
119
|
+
|
120
|
+
<li><a href="../../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
|
121
|
+
|
122
|
+
<li><a href="../../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
|
123
|
+
|
124
|
+
<li><a href="../../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
|
125
|
+
|
126
|
+
<li><a href="../../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
|
127
|
+
|
128
|
+
<li><a href="../../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
|
129
|
+
|
130
|
+
<li><a href="../../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
|
131
|
+
|
132
|
+
<li><a href="../../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
|
133
|
+
|
134
|
+
<li><a href="../../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
|
135
|
+
|
136
|
+
<li><a href="../../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
|
137
|
+
|
138
|
+
<li><a href="../../YMDP/Configuration.html">YMDP::Configuration</a>
|
139
|
+
|
140
|
+
<li><a href="../../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
|
141
|
+
|
142
|
+
<li><a href="../../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
|
143
|
+
|
144
|
+
<li><a href="../../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
|
145
|
+
|
146
|
+
<li><a href="../../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
|
147
|
+
|
148
|
+
<li><a href="../../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
|
149
|
+
|
150
|
+
<li><a href="../../YMDP/GitHelper.html">YMDP::GitHelper</a>
|
151
|
+
|
152
|
+
<li><a href="../../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
|
153
|
+
|
154
|
+
<li><a href="../../YMDP/View.html">YMDP::View</a>
|
155
|
+
|
156
|
+
<li><a href="../../ActionView.html">ActionView</a>
|
157
|
+
|
158
|
+
<li><a href="../../ActionView/Helpers.html">ActionView::Helpers</a>
|
159
|
+
|
160
|
+
<li><a href="../../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
|
161
|
+
|
162
|
+
<li><a href="../../Application.html">Application</a>
|
163
|
+
|
164
|
+
<li><a href="../../Object.html">Object</a>
|
165
|
+
|
166
|
+
</ul>
|
167
|
+
</nav>
|
168
|
+
|
169
|
+
</div>
|
170
|
+
</nav>
|
171
|
+
|
172
|
+
<div id="documentation">
|
173
|
+
<h1 class="module">module ActionView::Helpers::TagHelper</h1>
|
174
|
+
|
175
|
+
<div id="description" class="description">
|
176
|
+
|
177
|
+
<p>Provides methods to generate HTML tags programmatically when you can’t
|
178
|
+
use a Builder. By default, they output XHTML compliant tags.</p>
|
179
|
+
|
180
|
+
</div><!-- description -->
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<!-- Constants -->
|
192
|
+
<section id="constants-list" class="section">
|
193
|
+
<h3 class="section-header">Constants</h3>
|
194
|
+
<dl>
|
195
|
+
|
196
|
+
<dt id="BLOCK_CALLED_FROM_ERB">BLOCK_CALLED_FROM_ERB
|
197
|
+
|
198
|
+
<dd class="description">
|
199
|
+
|
200
|
+
|
201
|
+
<dt id="BOOLEAN_ATTRIBUTES">BOOLEAN_ATTRIBUTES
|
202
|
+
|
203
|
+
<dd class="description">
|
204
|
+
|
205
|
+
|
206
|
+
</dl>
|
207
|
+
</section>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<!-- Methods -->
|
213
|
+
|
214
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
215
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
216
|
+
|
217
|
+
|
218
|
+
<div id="method-i-cdata_section" class="method-detail ">
|
219
|
+
|
220
|
+
<div class="method-heading">
|
221
|
+
<span class="method-name">cdata_section</span><span
|
222
|
+
class="method-args">(content)</span>
|
223
|
+
<span class="method-click-advice">click to toggle source</span>
|
224
|
+
</div>
|
225
|
+
|
226
|
+
|
227
|
+
<div class="method-description">
|
228
|
+
|
229
|
+
<p>Returns a CDATA section with the given <code>content</code>. CDATA
|
230
|
+
sections are used to escape blocks of text containing characters which
|
231
|
+
would otherwise be recognized as markup. CDATA sections begin with the
|
232
|
+
string <code><![CDATA[</code> and end with (and may not contain) the
|
233
|
+
string <code>]]></code>.</p>
|
234
|
+
|
235
|
+
<h4 id="method-i-cdata_section-label-Examples">Examples</h4>
|
236
|
+
|
237
|
+
<pre class="ruby"><span class="ruby-identifier">cdata_section</span>(<span class="ruby-string">"<hello world>"</span>)
|
238
|
+
<span class="ruby-comment"># => <![CDATA[<hello world>]]></span>
|
239
|
+
|
240
|
+
<span class="ruby-identifier">cdata_section</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-string">"hello_world.txt"</span>))
|
241
|
+
<span class="ruby-comment"># => <![CDATA[<hello from a text file]]></span>
|
242
|
+
</pre>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
<div class="method-source-code" id="cdata_section-source">
|
247
|
+
<pre><span class="ruby-comment"># File lib/ymdp/view/tag_helper.rb, line 90</span>
|
248
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cdata_section</span>(<span class="ruby-identifier">content</span>)
|
249
|
+
<span class="ruby-node">"<![CDATA[#{content}]]>"</span>
|
250
|
+
<span class="ruby-keyword">end</span></pre>
|
251
|
+
</div><!-- cdata_section-source -->
|
252
|
+
|
253
|
+
</div>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
</div><!-- cdata_section-method -->
|
259
|
+
|
260
|
+
|
261
|
+
<div id="method-i-content_tag" class="method-detail ">
|
262
|
+
|
263
|
+
<div class="method-heading">
|
264
|
+
<span class="method-name">content_tag</span><span
|
265
|
+
class="method-args">(name, content_or_options_with_block = nil, options = nil, escape = true, &block)</span>
|
266
|
+
<span class="method-click-advice">click to toggle source</span>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
<div class="method-description">
|
271
|
+
|
272
|
+
<p>Returns an HTML block tag of type <code>name</code> surrounding the
|
273
|
+
<code>content</code>. Add HTML attributes by passing an attributes hash to
|
274
|
+
<code>options</code>. Instead of passing the content as an argument, you
|
275
|
+
can also use a block in which case, you pass your <code>options</code> as
|
276
|
+
the second parameter. Set escape to false to disable attribute value
|
277
|
+
escaping.</p>
|
278
|
+
|
279
|
+
<h4 id="method-i-content_tag-label-Options">Options</h4>
|
280
|
+
|
281
|
+
<p>The <code>options</code> hash is used with attributes with no value like
|
282
|
+
(<code>disabled</code> and <code>readonly</code>), which you can give a
|
283
|
+
value of true in the <code>options</code> hash. You can use symbols or
|
284
|
+
strings for the attribute names.</p>
|
285
|
+
|
286
|
+
<h4 id="method-i-content_tag-label-Examples">Examples</h4>
|
287
|
+
|
288
|
+
<pre>content_tag(:p, "Hello world!")
|
289
|
+
# => <p>Hello world!</p>
|
290
|
+
content_tag(:div, content_tag(:p, "Hello world!"), :class => "strong")
|
291
|
+
# => <div class="strong"><p>Hello world!</p></div>
|
292
|
+
content_tag("select", options, :multiple => true)
|
293
|
+
# => <select multiple="multiple">...options...</select>
|
294
|
+
|
295
|
+
<% content_tag :div, :class => "strong" do -%>
|
296
|
+
Hello world!
|
297
|
+
<% end -%>
|
298
|
+
# => <div class="strong">Hello world!</div></pre>
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
<div class="method-source-code" id="content_tag-source">
|
303
|
+
<pre><span class="ruby-comment"># File lib/ymdp/view/tag_helper.rb, line 64</span>
|
304
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">content_tag</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">content_or_options_with_block</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">options</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">escape</span> = <span class="ruby-keyword">true</span>, &<span class="ruby-identifier">block</span>)
|
305
|
+
<span class="ruby-comment"># if block_given?</span>
|
306
|
+
<span class="ruby-comment"># options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash)</span>
|
307
|
+
<span class="ruby-comment"># content_tag = content_tag_string(name, capture(&block), options, escape)</span>
|
308
|
+
<span class="ruby-comment"># </span>
|
309
|
+
<span class="ruby-comment"># if block_called_from_erb?(block)</span>
|
310
|
+
<span class="ruby-comment"># concat(content_tag)</span>
|
311
|
+
<span class="ruby-comment"># else</span>
|
312
|
+
<span class="ruby-comment"># content_tag</span>
|
313
|
+
<span class="ruby-comment"># end</span>
|
314
|
+
<span class="ruby-comment"># else</span>
|
315
|
+
<span class="ruby-identifier">content_tag_string</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">content_or_options_with_block</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">escape</span>)
|
316
|
+
<span class="ruby-comment"># end</span>
|
317
|
+
<span class="ruby-keyword">end</span></pre>
|
318
|
+
</div><!-- content_tag-source -->
|
319
|
+
|
320
|
+
</div>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
</div><!-- content_tag-method -->
|
326
|
+
|
327
|
+
|
328
|
+
<div id="method-i-escape_once" class="method-detail ">
|
329
|
+
|
330
|
+
<div class="method-heading">
|
331
|
+
<span class="method-name">escape_once</span><span
|
332
|
+
class="method-args">(html)</span>
|
333
|
+
<span class="method-click-advice">click to toggle source</span>
|
334
|
+
</div>
|
335
|
+
|
336
|
+
|
337
|
+
<div class="method-description">
|
338
|
+
|
339
|
+
<p>Returns an escaped version of <code>html</code> without affecting existing
|
340
|
+
escaped entities.</p>
|
341
|
+
|
342
|
+
<h4 id="method-i-escape_once-label-Examples">Examples</h4>
|
343
|
+
|
344
|
+
<pre class="ruby"><span class="ruby-identifier">escape_once</span>(<span class="ruby-string">"1 > 2 &amp; 3"</span>)
|
345
|
+
<span class="ruby-comment"># => "1 &lt; 2 &amp; 3"</span>
|
346
|
+
|
347
|
+
<span class="ruby-identifier">escape_once</span>(<span class="ruby-string">"&lt;&lt; Accept & Checkout"</span>)
|
348
|
+
<span class="ruby-comment"># => "&lt;&lt; Accept &amp; Checkout"</span>
|
349
|
+
</pre>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
<div class="method-source-code" id="escape_once-source">
|
354
|
+
<pre><span class="ruby-comment"># File lib/ymdp/view/tag_helper.rb, line 102</span>
|
355
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">escape_once</span>(<span class="ruby-identifier">html</span>)
|
356
|
+
<span class="ruby-identifier">html</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-node">%r[\"><]|&(?!([a-zA-Z]+|(#\d+));)/</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">special</span><span class="ruby-operator">|</span> <span class="ruby-constant">ERB</span><span class="ruby-operator">::</span><span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">HTML_ESCAPE</span>[<span class="ruby-identifier">special</span>] }
|
357
|
+
<span class="ruby-keyword">end</span></pre>
|
358
|
+
</div><!-- escape_once-source -->
|
359
|
+
|
360
|
+
</div>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
</div><!-- escape_once-method -->
|
366
|
+
|
367
|
+
|
368
|
+
<div id="method-i-tag" class="method-detail ">
|
369
|
+
|
370
|
+
<div class="method-heading">
|
371
|
+
<span class="method-name">tag</span><span
|
372
|
+
class="method-args">(name, options = nil, open = false, escape = true)</span>
|
373
|
+
<span class="method-click-advice">click to toggle source</span>
|
374
|
+
</div>
|
375
|
+
|
376
|
+
|
377
|
+
<div class="method-description">
|
378
|
+
|
379
|
+
<p>Returns an empty HTML tag of type <code>name</code> which by default is
|
380
|
+
XHTML compliant. Set <code>open</code> to true to create an open tag
|
381
|
+
compatible with HTML 4.0 and below. Add HTML attributes by passing an
|
382
|
+
attributes hash to <code>options</code>. Set <code>escape</code> to false
|
383
|
+
to disable attribute value escaping.</p>
|
384
|
+
|
385
|
+
<h4 id="method-i-tag-label-Options">Options</h4>
|
386
|
+
|
387
|
+
<p>The <code>options</code> hash is used with attributes with no value like
|
388
|
+
(<code>disabled</code> and <code>readonly</code>), which you can give a
|
389
|
+
value of true in the <code>options</code> hash. You can use symbols or
|
390
|
+
strings for the attribute names.</p>
|
391
|
+
|
392
|
+
<h4 id="method-i-tag-label-Examples">Examples</h4>
|
393
|
+
|
394
|
+
<pre class="ruby"><span class="ruby-identifier">tag</span>(<span class="ruby-string">"br"</span>)
|
395
|
+
<span class="ruby-comment"># => <br /></span>
|
396
|
+
|
397
|
+
<span class="ruby-identifier">tag</span>(<span class="ruby-string">"br"</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">true</span>)
|
398
|
+
<span class="ruby-comment"># => <br></span>
|
399
|
+
|
400
|
+
<span class="ruby-identifier">tag</span>(<span class="ruby-string">"input"</span>, { :<span class="ruby-identifier">type</span> =<span class="ruby-operator">></span> <span class="ruby-string">'text'</span>, :<span class="ruby-identifier">disabled</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span> })
|
401
|
+
<span class="ruby-comment"># => <input type="text" disabled="disabled" /></span>
|
402
|
+
|
403
|
+
<span class="ruby-identifier">tag</span>(<span class="ruby-string">"img"</span>, { :<span class="ruby-identifier">src</span> =<span class="ruby-operator">></span> <span class="ruby-string">"open & shut.png"</span> })
|
404
|
+
<span class="ruby-comment"># => <img src="open &amp; shut.png" /></span>
|
405
|
+
|
406
|
+
<span class="ruby-identifier">tag</span>(<span class="ruby-string">"img"</span>, { :<span class="ruby-identifier">src</span> =<span class="ruby-operator">></span> <span class="ruby-string">"open &amp; shut.png"</span> }, <span class="ruby-keyword">false</span>, <span class="ruby-keyword">false</span>)
|
407
|
+
<span class="ruby-comment"># => <img src="open &amp; shut.png" /></span>
|
408
|
+
</pre>
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
<div class="method-source-code" id="tag-source">
|
413
|
+
<pre><span class="ruby-comment"># File lib/ymdp/view/tag_helper.rb, line 37</span>
|
414
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">open</span> = <span class="ruby-keyword">false</span>, <span class="ruby-identifier">escape</span> = <span class="ruby-keyword">true</span>)
|
415
|
+
<span class="ruby-node">"<#{name}#{tag_options(options, escape) if options}#{open ? ">" : " />"}"</span>
|
416
|
+
<span class="ruby-keyword">end</span></pre>
|
417
|
+
</div><!-- tag-source -->
|
418
|
+
|
419
|
+
</div>
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
</div><!-- tag-method -->
|
425
|
+
|
426
|
+
|
427
|
+
</section><!-- public-instance-method-details -->
|
428
|
+
|
429
|
+
</section><!-- 5Buntitled-5D -->
|
430
|
+
|
431
|
+
</div><!-- documentation -->
|
432
|
+
|
433
|
+
|
434
|
+
<footer id="validator-badges">
|
435
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
436
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
437
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
438
|
+
</footer>
|
439
|
+
|