erubis 2.4.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES → CHANGES.txt} +59 -3
- data/MIT-LICENSE +1 -1
- data/README.txt +5 -5
- data/benchmark/bench.rb +2 -2
- data/bin/erubis +2 -2
- data/contrib/erubis +46 -46
- data/contrib/inline-require +2 -2
- data/doc-api/classes/Erubis.html +5 -1
- data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
- data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
- data/doc-api/classes/Erubis/CGenerator.html +60 -60
- data/doc-api/classes/Erubis/Context.html +42 -42
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Engine.html +30 -30
- data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Helpers.html +6 -1
- data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +762 -0
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +12 -18
- data/doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html +2 -2
- data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
- data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
- data/doc-api/classes/Erubis/Main.html +19 -19
- data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
- data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
- data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
- data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
- data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
- data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
- data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
- data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
- data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
- data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
- data/doc-api/classes/Erubis/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/XmlHelper.html +30 -30
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +6 -7
- data/doc-api/files/erubis/context_rb.html +1 -1
- data/doc-api/files/erubis/converter_rb.html +1 -1
- data/doc-api/files/erubis/engine/ec_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
- data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
- data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
- data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
- data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
- data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
- data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
- data/doc-api/files/erubis/engine_rb.html +1 -1
- data/doc-api/files/erubis/enhancer_rb.html +1 -1
- data/doc-api/files/erubis/error_rb.html +1 -1
- data/doc-api/files/erubis/evaluator_rb.html +1 -1
- data/doc-api/files/erubis/generator_rb.html +1 -1
- data/doc-api/files/erubis/helper_rb.html +1 -1
- data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
- data/doc-api/files/erubis/local-setting_rb.html +1 -1
- data/doc-api/files/erubis/main_rb.html +1 -1
- data/doc-api/files/erubis/tiny_rb.html +1 -1
- data/doc-api/files/erubis_rb.html +2 -2
- data/doc-api/fr_class_index.html +1 -0
- data/doc-api/fr_file_index.html +1 -0
- data/doc-api/fr_method_index.html +162 -138
- data/doc/users-guide.html +157 -62
- data/lib/erubis.rb +4 -4
- data/lib/erubis/context.rb +2 -2
- data/lib/erubis/converter.rb +2 -2
- data/lib/erubis/engine.rb +2 -2
- data/lib/erubis/engine/ec.rb +2 -2
- data/lib/erubis/engine/ejava.rb +2 -2
- data/lib/erubis/engine/ejavascript.rb +2 -2
- data/lib/erubis/engine/enhanced.rb +2 -2
- data/lib/erubis/engine/eperl.rb +2 -2
- data/lib/erubis/engine/ephp.rb +2 -2
- data/lib/erubis/engine/eruby.rb +2 -2
- data/lib/erubis/engine/escheme.rb +2 -2
- data/lib/erubis/engine/optimized.rb +2 -2
- data/lib/erubis/enhancer.rb +2 -2
- data/lib/erubis/error.rb +2 -2
- data/lib/erubis/evaluator.rb +2 -2
- data/lib/erubis/generator.rb +2 -2
- data/lib/erubis/helper.rb +2 -2
- data/lib/erubis/helpers/rails_form_helper.rb +190 -0
- data/lib/erubis/helpers/rails_helper.rb +63 -28
- data/lib/erubis/local-setting.rb +2 -2
- data/lib/erubis/main.rb +2 -2
- data/lib/erubis/tiny.rb +2 -2
- data/test/assert-text-equal.rb +2 -2
- data/test/test-engines.rb +2 -2
- data/test/test-enhancers.rb +2 -2
- data/test/test-erubis.rb +2 -2
- data/test/test-main.rb +2 -2
- data/test/test-users-guide.rb +2 -2
- data/test/test.rb +2 -2
- data/test/testutil.rb +2 -2
- metadata +53 -44
- data/test/data/users-guide/stderr.log +0 -3
@@ -86,9 +86,9 @@ evaluator for Ruby
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
89
|
+
<a href="#M000190">def_method</a>
|
90
|
+
<a href="#M000189">evaluate</a>
|
91
|
+
<a href="#M000188">result</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -117,11 +117,11 @@ evaluator for Ruby
|
|
117
117
|
<div id="methods">
|
118
118
|
<h3 class="section-bar">Public Instance methods</h3>
|
119
119
|
|
120
|
-
<div id="method-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000190" class="method-detail">
|
121
|
+
<a name="M000190"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000190" class="method-signature">
|
125
125
|
<span class="method-name">def_method</span><span class="method-args">(object, method_name, filename=nil)</span>
|
126
126
|
</a>
|
127
127
|
</div>
|
@@ -132,8 +132,8 @@ if object is an Class or Module then define instance method to it, else
|
|
132
132
|
define singleton method to it.
|
133
133
|
</p>
|
134
134
|
<p><a class="source-toggle" href="#"
|
135
|
-
onclick="toggleCode('
|
136
|
-
<div class="method-source-code" id="
|
135
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
136
|
+
<div class="method-source-code" id="M000190-source">
|
137
137
|
<pre>
|
138
138
|
<span class="ruby-comment cmt"># File erubis/evaluator.rb, line 75</span>
|
139
139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">def_method</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -145,11 +145,11 @@ define singleton method to it.
|
|
145
145
|
</div>
|
146
146
|
</div>
|
147
147
|
|
148
|
-
<div id="method-
|
149
|
-
<a name="
|
148
|
+
<div id="method-M000189" class="method-detail">
|
149
|
+
<a name="M000189"></a>
|
150
150
|
|
151
151
|
<div class="method-heading">
|
152
|
-
<a href="#
|
152
|
+
<a href="#M000189" class="method-signature">
|
153
153
|
<span class="method-name">evaluate</span><span class="method-args">(context=Context.new)</span>
|
154
154
|
</a>
|
155
155
|
</div>
|
@@ -159,8 +159,8 @@ define singleton method to it.
|
|
159
159
|
invoke context.instance_eval(@src)
|
160
160
|
</p>
|
161
161
|
<p><a class="source-toggle" href="#"
|
162
|
-
onclick="toggleCode('
|
163
|
-
<div class="method-source-code" id="
|
162
|
+
onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000189-source">
|
164
164
|
<pre>
|
165
165
|
<span class="ruby-comment cmt"># File erubis/evaluator.rb, line 66</span>
|
166
166
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">evaluate</span>(<span class="ruby-identifier">context</span>=<span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>)
|
@@ -174,11 +174,11 @@ invoke context.instance_eval(@src)
|
|
174
174
|
</div>
|
175
175
|
</div>
|
176
176
|
|
177
|
-
<div id="method-
|
178
|
-
<a name="
|
177
|
+
<div id="method-M000188" class="method-detail">
|
178
|
+
<a name="M000188"></a>
|
179
179
|
|
180
180
|
<div class="method-heading">
|
181
|
-
<a href="#
|
181
|
+
<a href="#M000188" class="method-signature">
|
182
182
|
<span class="method-name">result</span><span class="method-args">(_binding_or_hash=TOPLEVEL_BINDING)</span>
|
183
183
|
</a>
|
184
184
|
</div>
|
@@ -188,8 +188,8 @@ invoke context.instance_eval(@src)
|
|
188
188
|
eval(@src) with binding object
|
189
189
|
</p>
|
190
190
|
<p><a class="source-toggle" href="#"
|
191
|
-
onclick="toggleCode('
|
192
|
-
<div class="method-source-code" id="
|
191
|
+
onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
|
192
|
+
<div class="method-source-code" id="M000188-source">
|
193
193
|
<pre>
|
194
194
|
<span class="ruby-comment cmt"># File erubis/evaluator.rb, line 54</span>
|
195
195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>(<span class="ruby-identifier">_binding_or_hash</span>=<span class="ruby-constant">TOPLEVEL_BINDING</span>)
|
@@ -89,8 +89,8 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
89
89
|
<h3 class="section-bar">Methods</h3>
|
90
90
|
|
91
91
|
<div class="name-list">
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
92
|
+
<a href="#M000192">add_postamble</a>
|
93
|
+
<a href="#M000191">add_preamble</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -112,19 +112,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
112
112
|
<div id="methods">
|
113
113
|
<h3 class="section-bar">Public Instance methods</h3>
|
114
114
|
|
115
|
-
<div id="method-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000192" class="method-detail">
|
116
|
+
<a name="M000192"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
119
|
+
<a href="#M000192" class="method-signature">
|
120
120
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
121
121
|
</a>
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div class="method-description">
|
125
125
|
<p><a class="source-toggle" href="#"
|
126
|
-
onclick="toggleCode('
|
127
|
-
<div class="method-source-code" id="
|
126
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
127
|
+
<div class="method-source-code" id="M000192-source">
|
128
128
|
<pre>
|
129
129
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 215</span>
|
130
130
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -136,19 +136,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
136
136
|
</div>
|
137
137
|
</div>
|
138
138
|
|
139
|
-
<div id="method-
|
140
|
-
<a name="
|
139
|
+
<div id="method-M000191" class="method-detail">
|
140
|
+
<a name="M000191"></a>
|
141
141
|
|
142
142
|
<div class="method-heading">
|
143
|
-
<a href="#
|
143
|
+
<a href="#M000191" class="method-signature">
|
144
144
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
145
145
|
</a>
|
146
146
|
</div>
|
147
147
|
|
148
148
|
<div class="method-description">
|
149
149
|
<p><a class="source-toggle" href="#"
|
150
|
-
onclick="toggleCode('
|
151
|
-
<div class="method-source-code" id="
|
150
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000191-source">
|
152
152
|
<pre>
|
153
153
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 211</span>
|
154
154
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -101,10 +101,10 @@ ex.
|
|
101
101
|
<h3 class="section-bar">Methods</h3>
|
102
102
|
|
103
103
|
<div class="name-list">
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
104
|
+
<a href="#M000194">convert</a>
|
105
|
+
<a href="#M000196">evaluate</a>
|
106
|
+
<a href="#M000193">new</a>
|
107
|
+
<a href="#M000195">result</a>
|
108
108
|
</div>
|
109
109
|
</div>
|
110
110
|
|
@@ -152,19 +152,19 @@ ex.
|
|
152
152
|
<div id="methods">
|
153
153
|
<h3 class="section-bar">Public Class methods</h3>
|
154
154
|
|
155
|
-
<div id="method-
|
156
|
-
<a name="
|
155
|
+
<div id="method-M000193" class="method-detail">
|
156
|
+
<a name="M000193"></a>
|
157
157
|
|
158
158
|
<div class="method-heading">
|
159
|
-
<a href="#
|
159
|
+
<a href="#M000193" class="method-signature">
|
160
160
|
<span class="method-name">new</span><span class="method-args">(input=nil)</span>
|
161
161
|
</a>
|
162
162
|
</div>
|
163
163
|
|
164
164
|
<div class="method-description">
|
165
165
|
<p><a class="source-toggle" href="#"
|
166
|
-
onclick="toggleCode('
|
167
|
-
<div class="method-source-code" id="
|
166
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
167
|
+
<div class="method-source-code" id="M000193-source">
|
168
168
|
<pre>
|
169
169
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 20</span>
|
170
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -177,19 +177,19 @@ ex.
|
|
177
177
|
|
178
178
|
<h3 class="section-bar">Public Instance methods</h3>
|
179
179
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
180
|
+
<div id="method-M000194" class="method-detail">
|
181
|
+
<a name="M000194"></a>
|
182
182
|
|
183
183
|
<div class="method-heading">
|
184
|
-
<a href="#
|
184
|
+
<a href="#M000194" class="method-signature">
|
185
185
|
<span class="method-name">convert</span><span class="method-args">(input)</span>
|
186
186
|
</a>
|
187
187
|
</div>
|
188
188
|
|
189
189
|
<div class="method-description">
|
190
190
|
<p><a class="source-toggle" href="#"
|
191
|
-
onclick="toggleCode('
|
192
|
-
<div class="method-source-code" id="
|
191
|
+
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
192
|
+
<div class="method-source-code" id="M000194-source">
|
193
193
|
<pre>
|
194
194
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 27</span>
|
195
195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>)
|
@@ -223,19 +223,19 @@ ex.
|
|
223
223
|
</div>
|
224
224
|
</div>
|
225
225
|
|
226
|
-
<div id="method-
|
227
|
-
<a name="
|
226
|
+
<div id="method-M000196" class="method-detail">
|
227
|
+
<a name="M000196"></a>
|
228
228
|
|
229
229
|
<div class="method-heading">
|
230
|
-
<a href="#
|
230
|
+
<a href="#M000196" class="method-signature">
|
231
231
|
<span class="method-name">evaluate</span><span class="method-args">(_context=Object.new)</span>
|
232
232
|
</a>
|
233
233
|
</div>
|
234
234
|
|
235
235
|
<div class="method-description">
|
236
236
|
<p><a class="source-toggle" href="#"
|
237
|
-
onclick="toggleCode('
|
238
|
-
<div class="method-source-code" id="
|
237
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
238
|
+
<div class="method-source-code" id="M000196-source">
|
239
239
|
<pre>
|
240
240
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 62</span>
|
241
241
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">evaluate</span>(<span class="ruby-identifier">_context</span>=<span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>)
|
@@ -251,11 +251,11 @@ ex.
|
|
251
251
|
</div>
|
252
252
|
</div>
|
253
253
|
|
254
|
-
<div id="method-
|
255
|
-
<a name="
|
254
|
+
<div id="method-M000195" class="method-detail">
|
255
|
+
<a name="M000195"></a>
|
256
256
|
|
257
257
|
<div class="method-heading">
|
258
|
-
<a href="#
|
258
|
+
<a href="#M000195" class="method-signature">
|
259
259
|
<span class="method-name">result</span><span class="method-args">(_binding=TOPLEVEL_BINDING)</span>
|
260
260
|
</a>
|
261
261
|
</div>
|
@@ -271,8 +271,8 @@ def escape_text(text)
|
|
271
271
|
end
|
272
272
|
</p>
|
273
273
|
<p><a class="source-toggle" href="#"
|
274
|
-
onclick="toggleCode('
|
275
|
-
<div class="method-source-code" id="
|
274
|
+
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
275
|
+
<div class="method-source-code" id="M000195-source">
|
276
276
|
<pre>
|
277
277
|
<span class="ruby-comment cmt"># File erubis/tiny.rb, line 58</span>
|
278
278
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">result</span>(<span class="ruby-identifier">_binding</span>=<span class="ruby-constant">TOPLEVEL_BINDING</span>)
|
@@ -86,12 +86,12 @@ helper for xml
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
89
|
+
<a href="#M000112">escape_xml</a>
|
90
|
+
<a href="#M000113">escape_xml2</a>
|
91
|
+
<a href="#M000114">h</a>
|
92
|
+
<a href="#M000115">html_escape</a>
|
93
|
+
<a href="#M000117">u</a>
|
94
|
+
<a href="#M000116">url_encode</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -126,19 +126,19 @@ helper for xml
|
|
126
126
|
<div id="methods">
|
127
127
|
<h3 class="section-bar">Public Instance methods</h3>
|
128
128
|
|
129
|
-
<div id="method-
|
130
|
-
<a name="
|
129
|
+
<div id="method-M000112" class="method-detail">
|
130
|
+
<a name="M000112"></a>
|
131
131
|
|
132
132
|
<div class="method-heading">
|
133
|
-
<a href="#
|
133
|
+
<a href="#M000112" class="method-signature">
|
134
134
|
<span class="method-name">escape_xml</span><span class="method-args">(value)</span>
|
135
135
|
</a>
|
136
136
|
</div>
|
137
137
|
|
138
138
|
<div class="method-description">
|
139
139
|
<p><a class="source-toggle" href="#"
|
140
|
-
onclick="toggleCode('
|
141
|
-
<div class="method-source-code" id="
|
140
|
+
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
141
|
+
<div class="method-source-code" id="M000112-source">
|
142
142
|
<pre>
|
143
143
|
<span class="ruby-comment cmt"># File erubis/helper.rb, line 25</span>
|
144
144
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_xml</span>(<span class="ruby-identifier">value</span>)
|
@@ -150,19 +150,19 @@ helper for xml
|
|
150
150
|
</div>
|
151
151
|
</div>
|
152
152
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
153
|
+
<div id="method-M000113" class="method-detail">
|
154
|
+
<a name="M000113"></a>
|
155
155
|
|
156
156
|
<div class="method-heading">
|
157
|
-
<a href="#
|
157
|
+
<a href="#M000113" class="method-signature">
|
158
158
|
<span class="method-name">escape_xml2</span><span class="method-args">(value)</span>
|
159
159
|
</a>
|
160
160
|
</div>
|
161
161
|
|
162
162
|
<div class="method-description">
|
163
163
|
<p><a class="source-toggle" href="#"
|
164
|
-
onclick="toggleCode('
|
165
|
-
<div class="method-source-code" id="
|
164
|
+
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
165
|
+
<div class="method-source-code" id="M000113-source">
|
166
166
|
<pre>
|
167
167
|
<span class="ruby-comment cmt"># File erubis/helper.rb, line 30</span>
|
168
168
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_xml2</span>(<span class="ruby-identifier">value</span>)
|
@@ -173,8 +173,8 @@ helper for xml
|
|
173
173
|
</div>
|
174
174
|
</div>
|
175
175
|
|
176
|
-
<div id="method-
|
177
|
-
<a name="
|
176
|
+
<div id="method-M000114" class="method-detail">
|
177
|
+
<a name="M000114"></a>
|
178
178
|
|
179
179
|
<div class="method-heading">
|
180
180
|
<span class="method-name">h</span><span class="method-args">(value)</span>
|
@@ -182,13 +182,13 @@ helper for xml
|
|
182
182
|
|
183
183
|
<div class="method-description">
|
184
184
|
<p>
|
185
|
-
Alias for <a href="XmlHelper.html#
|
185
|
+
Alias for <a href="XmlHelper.html#M000112">escape_xml</a>
|
186
186
|
</p>
|
187
187
|
</div>
|
188
188
|
</div>
|
189
189
|
|
190
|
-
<div id="method-
|
191
|
-
<a name="
|
190
|
+
<div id="method-M000115" class="method-detail">
|
191
|
+
<a name="M000115"></a>
|
192
192
|
|
193
193
|
<div class="method-heading">
|
194
194
|
<span class="method-name">html_escape</span><span class="method-args">(value)</span>
|
@@ -196,13 +196,13 @@ Alias for <a href="XmlHelper.html#M000088">escape_xml</a>
|
|
196
196
|
|
197
197
|
<div class="method-description">
|
198
198
|
<p>
|
199
|
-
Alias for <a href="XmlHelper.html#
|
199
|
+
Alias for <a href="XmlHelper.html#M000112">escape_xml</a>
|
200
200
|
</p>
|
201
201
|
</div>
|
202
202
|
</div>
|
203
203
|
|
204
|
-
<div id="method-
|
205
|
-
<a name="
|
204
|
+
<div id="method-M000117" class="method-detail">
|
205
|
+
<a name="M000117"></a>
|
206
206
|
|
207
207
|
<div class="method-heading">
|
208
208
|
<span class="method-name">u</span><span class="method-args">(str)</span>
|
@@ -210,24 +210,24 @@ Alias for <a href="XmlHelper.html#M000088">escape_xml</a>
|
|
210
210
|
|
211
211
|
<div class="method-description">
|
212
212
|
<p>
|
213
|
-
Alias for <a href="XmlHelper.html#
|
213
|
+
Alias for <a href="XmlHelper.html#M000116">url_encode</a>
|
214
214
|
</p>
|
215
215
|
</div>
|
216
216
|
</div>
|
217
217
|
|
218
|
-
<div id="method-
|
219
|
-
<a name="
|
218
|
+
<div id="method-M000116" class="method-detail">
|
219
|
+
<a name="M000116"></a>
|
220
220
|
|
221
221
|
<div class="method-heading">
|
222
|
-
<a href="#
|
222
|
+
<a href="#M000116" class="method-signature">
|
223
223
|
<span class="method-name">url_encode</span><span class="method-args">(str)</span>
|
224
224
|
</a>
|
225
225
|
</div>
|
226
226
|
|
227
227
|
<div class="method-description">
|
228
228
|
<p><a class="source-toggle" href="#"
|
229
|
-
onclick="toggleCode('
|
230
|
-
<div class="method-source-code" id="
|
229
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
230
|
+
<div class="method-source-code" id="M000116-source">
|
231
231
|
<pre>
|
232
232
|
<span class="ruby-comment cmt"># File erubis/helper.rb, line 37</span>
|
233
233
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_encode</span>(<span class="ruby-identifier">str</span>)
|
data/doc-api/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Wed, 30 Jan 2008 23:28:25 +0900
|
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Wed Jan 30 23:28:22 +0900 2008</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -71,10 +71,10 @@
|
|
71
71
|
<div id="description">
|
72
72
|
<h1>README</h1>
|
73
73
|
<table>
|
74
|
-
<tr><td valign="top">release:</td><td>2.
|
74
|
+
<tr><td valign="top">release:</td><td>2.5.0
|
75
75
|
|
76
76
|
</td></tr>
|
77
|
-
<tr><td valign="top">copyright:</td><td>copyright(c) 2006-
|
77
|
+
<tr><td valign="top">copyright:</td><td>copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
78
78
|
|
79
79
|
</td></tr>
|
80
80
|
</table>
|
@@ -127,11 +127,10 @@ See doc/users-guide.html for details.
|
|
127
127
|
</p>
|
128
128
|
<h2>Installation</h2>
|
129
129
|
<ul>
|
130
|
-
<li>If you have installed RubyGems, just type <tt>gem install
|
131
|
-
erubis</tt>.
|
130
|
+
<li>If you have installed RubyGems, just type <tt>gem install erubis</tt>.
|
132
131
|
|
133
132
|
<pre>
|
134
|
-
$ sudo gem install
|
133
|
+
$ sudo gem install erubis
|
135
134
|
</pre>
|
136
135
|
</li>
|
137
136
|
<li>Else install <a href="http://rubyforge.org/projects/abstract/">abstract</a>
|
@@ -169,7 +168,7 @@ have to do is to add the following code into your
|
|
169
168
|
require 'erubis/helpers/rails_helper'
|
170
169
|
#Erubis::Helpers::RailsHelper.engine_class = Erubis::Eruby
|
171
170
|
#Erubis::Helpers::RailsHelper.init_properties = {}
|
172
|
-
#Erubis::Helpers::RailsHelper.show_src =
|
171
|
+
#Erubis::Helpers::RailsHelper.show_src = nil
|
173
172
|
</pre>
|
174
173
|
<p>
|
175
174
|
If Erubis::Helpers::RailsHelper.show_src is ture, <a
|