erubis 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/{CHANGES → CHANGES.txt} +59 -3
  2. data/MIT-LICENSE +1 -1
  3. data/README.txt +5 -5
  4. data/benchmark/bench.rb +2 -2
  5. data/bin/erubis +2 -2
  6. data/contrib/erubis +46 -46
  7. data/contrib/inline-require +2 -2
  8. data/doc-api/classes/Erubis.html +5 -1
  9. data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
  10. data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
  11. data/doc-api/classes/Erubis/CGenerator.html +60 -60
  12. data/doc-api/classes/Erubis/Context.html +42 -42
  13. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
  14. data/doc-api/classes/Erubis/Engine.html +30 -30
  15. data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
  16. data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
  17. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
  18. data/doc-api/classes/Erubis/Helpers.html +6 -1
  19. data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +762 -0
  20. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +12 -18
  21. data/doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html +2 -2
  22. data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
  23. data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
  24. data/doc-api/classes/Erubis/Main.html +19 -19
  25. data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
  26. data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
  27. data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
  28. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
  29. data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
  30. data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
  31. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
  32. data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
  33. data/doc-api/classes/Erubis/RubyEvaluator.html +18 -18
  34. data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
  35. data/doc-api/classes/Erubis/TinyEruby.html +24 -24
  36. data/doc-api/classes/Erubis/XmlHelper.html +30 -30
  37. data/doc-api/created.rid +1 -1
  38. data/doc-api/files/README_txt.html +6 -7
  39. data/doc-api/files/erubis/context_rb.html +1 -1
  40. data/doc-api/files/erubis/converter_rb.html +1 -1
  41. data/doc-api/files/erubis/engine/ec_rb.html +1 -1
  42. data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
  43. data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
  44. data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
  45. data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
  46. data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
  47. data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
  48. data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
  49. data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
  50. data/doc-api/files/erubis/engine_rb.html +1 -1
  51. data/doc-api/files/erubis/enhancer_rb.html +1 -1
  52. data/doc-api/files/erubis/error_rb.html +1 -1
  53. data/doc-api/files/erubis/evaluator_rb.html +1 -1
  54. data/doc-api/files/erubis/generator_rb.html +1 -1
  55. data/doc-api/files/erubis/helper_rb.html +1 -1
  56. data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
  57. data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
  58. data/doc-api/files/erubis/local-setting_rb.html +1 -1
  59. data/doc-api/files/erubis/main_rb.html +1 -1
  60. data/doc-api/files/erubis/tiny_rb.html +1 -1
  61. data/doc-api/files/erubis_rb.html +2 -2
  62. data/doc-api/fr_class_index.html +1 -0
  63. data/doc-api/fr_file_index.html +1 -0
  64. data/doc-api/fr_method_index.html +162 -138
  65. data/doc/users-guide.html +157 -62
  66. data/lib/erubis.rb +4 -4
  67. data/lib/erubis/context.rb +2 -2
  68. data/lib/erubis/converter.rb +2 -2
  69. data/lib/erubis/engine.rb +2 -2
  70. data/lib/erubis/engine/ec.rb +2 -2
  71. data/lib/erubis/engine/ejava.rb +2 -2
  72. data/lib/erubis/engine/ejavascript.rb +2 -2
  73. data/lib/erubis/engine/enhanced.rb +2 -2
  74. data/lib/erubis/engine/eperl.rb +2 -2
  75. data/lib/erubis/engine/ephp.rb +2 -2
  76. data/lib/erubis/engine/eruby.rb +2 -2
  77. data/lib/erubis/engine/escheme.rb +2 -2
  78. data/lib/erubis/engine/optimized.rb +2 -2
  79. data/lib/erubis/enhancer.rb +2 -2
  80. data/lib/erubis/error.rb +2 -2
  81. data/lib/erubis/evaluator.rb +2 -2
  82. data/lib/erubis/generator.rb +2 -2
  83. data/lib/erubis/helper.rb +2 -2
  84. data/lib/erubis/helpers/rails_form_helper.rb +190 -0
  85. data/lib/erubis/helpers/rails_helper.rb +63 -28
  86. data/lib/erubis/local-setting.rb +2 -2
  87. data/lib/erubis/main.rb +2 -2
  88. data/lib/erubis/tiny.rb +2 -2
  89. data/test/assert-text-equal.rb +2 -2
  90. data/test/test-engines.rb +2 -2
  91. data/test/test-enhancers.rb +2 -2
  92. data/test/test-erubis.rb +2 -2
  93. data/test/test-main.rb +2 -2
  94. data/test/test-users-guide.rb +2 -2
  95. data/test/test.rb +2 -2
  96. data/test/testutil.rb +2 -2
  97. metadata +53 -44
  98. 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="#M000166">def_method</a>&nbsp;&nbsp;
90
- <a href="#M000165">evaluate</a>&nbsp;&nbsp;
91
- <a href="#M000164">result</a>&nbsp;&nbsp;
89
+ <a href="#M000190">def_method</a>&nbsp;&nbsp;
90
+ <a href="#M000189">evaluate</a>&nbsp;&nbsp;
91
+ <a href="#M000188">result</a>&nbsp;&nbsp;
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-M000166" class="method-detail">
121
- <a name="M000166"></a>
120
+ <div id="method-M000190" class="method-detail">
121
+ <a name="M000190"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000166" class="method-signature">
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('M000166-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000166-source">
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-M000165" class="method-detail">
149
- <a name="M000165"></a>
148
+ <div id="method-M000189" class="method-detail">
149
+ <a name="M000189"></a>
150
150
 
151
151
  <div class="method-heading">
152
- <a href="#M000165" class="method-signature">
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('M000165-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000165-source">
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-M000164" class="method-detail">
178
- <a name="M000164"></a>
177
+ <div id="method-M000188" class="method-detail">
178
+ <a name="M000188"></a>
179
179
 
180
180
  <div class="method-heading">
181
- <a href="#M000164" class="method-signature">
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('M000164-source');return false;">[Source]</a></p>
192
- <div class="method-source-code" id="M000164-source">
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="#M000168">add_postamble</a>&nbsp;&nbsp;
93
- <a href="#M000167">add_preamble</a>&nbsp;&nbsp;
92
+ <a href="#M000192">add_postamble</a>&nbsp;&nbsp;
93
+ <a href="#M000191">add_preamble</a>&nbsp;&nbsp;
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-M000168" class="method-detail">
116
- <a name="M000168"></a>
115
+ <div id="method-M000192" class="method-detail">
116
+ <a name="M000192"></a>
117
117
 
118
118
  <div class="method-heading">
119
- <a href="#M000168" class="method-signature">
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('M000168-source');return false;">[Source]</a></p>
127
- <div class="method-source-code" id="M000168-source">
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-M000167" class="method-detail">
140
- <a name="M000167"></a>
139
+ <div id="method-M000191" class="method-detail">
140
+ <a name="M000191"></a>
141
141
 
142
142
  <div class="method-heading">
143
- <a href="#M000167" class="method-signature">
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('M000167-source');return false;">[Source]</a></p>
151
- <div class="method-source-code" id="M000167-source">
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="#M000170">convert</a>&nbsp;&nbsp;
105
- <a href="#M000172">evaluate</a>&nbsp;&nbsp;
106
- <a href="#M000169">new</a>&nbsp;&nbsp;
107
- <a href="#M000171">result</a>&nbsp;&nbsp;
104
+ <a href="#M000194">convert</a>&nbsp;&nbsp;
105
+ <a href="#M000196">evaluate</a>&nbsp;&nbsp;
106
+ <a href="#M000193">new</a>&nbsp;&nbsp;
107
+ <a href="#M000195">result</a>&nbsp;&nbsp;
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-M000169" class="method-detail">
156
- <a name="M000169"></a>
155
+ <div id="method-M000193" class="method-detail">
156
+ <a name="M000193"></a>
157
157
 
158
158
  <div class="method-heading">
159
- <a href="#M000169" class="method-signature">
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('M000169-source');return false;">[Source]</a></p>
167
- <div class="method-source-code" id="M000169-source">
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-M000170" class="method-detail">
181
- <a name="M000170"></a>
180
+ <div id="method-M000194" class="method-detail">
181
+ <a name="M000194"></a>
182
182
 
183
183
  <div class="method-heading">
184
- <a href="#M000170" class="method-signature">
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('M000170-source');return false;">[Source]</a></p>
192
- <div class="method-source-code" id="M000170-source">
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-M000172" class="method-detail">
227
- <a name="M000172"></a>
226
+ <div id="method-M000196" class="method-detail">
227
+ <a name="M000196"></a>
228
228
 
229
229
  <div class="method-heading">
230
- <a href="#M000172" class="method-signature">
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('M000172-source');return false;">[Source]</a></p>
238
- <div class="method-source-code" id="M000172-source">
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-M000171" class="method-detail">
255
- <a name="M000171"></a>
254
+ <div id="method-M000195" class="method-detail">
255
+ <a name="M000195"></a>
256
256
 
257
257
  <div class="method-heading">
258
- <a href="#M000171" class="method-signature">
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('M000171-source');return false;">[Source]</a></p>
275
- <div class="method-source-code" id="M000171-source">
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="#M000088">escape_xml</a>&nbsp;&nbsp;
90
- <a href="#M000089">escape_xml2</a>&nbsp;&nbsp;
91
- <a href="#M000090">h</a>&nbsp;&nbsp;
92
- <a href="#M000091">html_escape</a>&nbsp;&nbsp;
93
- <a href="#M000093">u</a>&nbsp;&nbsp;
94
- <a href="#M000092">url_encode</a>&nbsp;&nbsp;
89
+ <a href="#M000112">escape_xml</a>&nbsp;&nbsp;
90
+ <a href="#M000113">escape_xml2</a>&nbsp;&nbsp;
91
+ <a href="#M000114">h</a>&nbsp;&nbsp;
92
+ <a href="#M000115">html_escape</a>&nbsp;&nbsp;
93
+ <a href="#M000117">u</a>&nbsp;&nbsp;
94
+ <a href="#M000116">url_encode</a>&nbsp;&nbsp;
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-M000088" class="method-detail">
130
- <a name="M000088"></a>
129
+ <div id="method-M000112" class="method-detail">
130
+ <a name="M000112"></a>
131
131
 
132
132
  <div class="method-heading">
133
- <a href="#M000088" class="method-signature">
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('M000088-source');return false;">[Source]</a></p>
141
- <div class="method-source-code" id="M000088-source">
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-M000089" class="method-detail">
154
- <a name="M000089"></a>
153
+ <div id="method-M000113" class="method-detail">
154
+ <a name="M000113"></a>
155
155
 
156
156
  <div class="method-heading">
157
- <a href="#M000089" class="method-signature">
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('M000089-source');return false;">[Source]</a></p>
165
- <div class="method-source-code" id="M000089-source">
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-M000090" class="method-detail">
177
- <a name="M000090"></a>
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#M000088">escape_xml</a>
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-M000091" class="method-detail">
191
- <a name="M000091"></a>
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#M000088">escape_xml</a>
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-M000093" class="method-detail">
205
- <a name="M000093"></a>
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#M000092">url_encode</a>
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-M000092" class="method-detail">
219
- <a name="M000092"></a>
218
+ <div id="method-M000116" class="method-detail">
219
+ <a name="M000116"></a>
220
220
 
221
221
  <div class="method-heading">
222
- <a href="#M000092" class="method-signature">
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('M000092-source');return false;">[Source]</a></p>
230
- <div class="method-source-code" id="M000092-source">
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>)
@@ -1 +1 @@
1
- Tue, 25 Sep 2007 07:56:39 +0900
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>Tue Sep 25 07:56:38 +0900 2007</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.4.1
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-2007 kuwata-lab.com all rights reserved.
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 &#8212;remote
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 --remote erubis
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 = false
171
+ #Erubis::Helpers::RailsHelper.show_src = nil
173
172
  </pre>
174
173
  <p>
175
174
  If Erubis::Helpers::RailsHelper.show_src is ture, <a