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
@@ -90,22 +90,16 @@ howto:
90
90
  #Erubis::Helpers::RailsHelper.preprocessing = true # set true to enable preprocessing
91
91
  </pre>
92
92
  </li>
93
- <li>(optional) apply the patch for &#8216;action_view/base.rb&#8216;
94
-
95
- <pre>
96
- $ cd /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
97
- $ sudo patch -p1 &lt; /tmp/erubis_2.X.X/contrib/action_view_base_rb.patch
98
- </pre>
99
- </li>
100
93
  <li>restart web server.
101
94
 
102
95
  </li>
103
96
  </ol>
104
97
  <p>
105
- if Erubis::Helper::Rails.show_src is ture, <a
98
+ if Erubis::Helper::Rails.show_src is true, <a
106
99
  href="../../Erubis.html">Erubis</a> prints converted Ruby code into log
107
- file (&#8216;log/development.log&#8217; or so). This may be useful for
108
- debug.
100
+ file (&#8216;log/development.log&#8217; or so). if false, it doesn&#8216;t.
101
+ if nil, <a href="../../Erubis.html">Erubis</a> prints converted Ruby code
102
+ if ENV[&#8216;RAILS_ENV&#8217;] == &#8216;development&#8217;.
109
103
  </p>
110
104
 
111
105
  </div>
@@ -170,7 +164,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
170
164
  onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
171
165
  <div class="method-source-code" id="M000078-source">
172
166
  <pre>
173
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 53</span>
167
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 49</span>
174
168
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">engine_class</span>
175
169
  <span class="ruby-ivar">@@engine_class</span>
176
170
  <span class="ruby-keyword kw">end</span>
@@ -193,7 +187,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
193
187
  onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
194
188
  <div class="method-source-code" id="M000079-source">
195
189
  <pre>
196
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 57</span>
190
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 53</span>
197
191
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">engine_class=</span>(<span class="ruby-identifier">klass</span>)
198
192
  <span class="ruby-ivar">@@engine_class</span> = <span class="ruby-identifier">klass</span>
199
193
  <span class="ruby-keyword kw">end</span>
@@ -216,7 +210,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
216
210
  onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
217
211
  <div class="method-source-code" id="M000080-source">
218
212
  <pre>
219
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 64</span>
213
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 60</span>
220
214
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">init_properties</span>
221
215
  <span class="ruby-ivar">@@init_properties</span>
222
216
  <span class="ruby-keyword kw">end</span>
@@ -239,7 +233,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
239
233
  onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
240
234
  <div class="method-source-code" id="M000081-source">
241
235
  <pre>
242
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 68</span>
236
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 64</span>
243
237
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">init_properties=</span>(<span class="ruby-identifier">hash</span>)
244
238
  <span class="ruby-ivar">@@init_properties</span> = <span class="ruby-identifier">hash</span>
245
239
  <span class="ruby-keyword kw">end</span>
@@ -262,7 +256,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
262
256
  onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
263
257
  <div class="method-source-code" id="M000084-source">
264
258
  <pre>
265
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 85</span>
259
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 81</span>
266
260
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">preprocessing</span>
267
261
  <span class="ruby-ivar">@@preprocessing</span>
268
262
  <span class="ruby-keyword kw">end</span>
@@ -285,7 +279,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
285
279
  onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
286
280
  <div class="method-source-code" id="M000085-source">
287
281
  <pre>
288
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 88</span>
282
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 84</span>
289
283
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">preprocessing=</span>(<span class="ruby-identifier">flag</span>)
290
284
  <span class="ruby-ivar">@@preprocessing</span> = <span class="ruby-identifier">flag</span>
291
285
  <span class="ruby-keyword kw">end</span>
@@ -308,7 +302,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
308
302
  onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
309
303
  <div class="method-source-code" id="M000082-source">
310
304
  <pre>
311
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 75</span>
305
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 71</span>
312
306
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">show_src</span>
313
307
  <span class="ruby-ivar">@@show_src</span>
314
308
  <span class="ruby-keyword kw">end</span>
@@ -331,7 +325,7 @@ href="../FastEruby.html">Erubis::FastEruby</a>
331
325
  onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
332
326
  <div class="method-source-code" id="M000083-source">
333
327
  <pre>
334
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 79</span>
328
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 75</span>
335
329
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">show_src=</span>(<span class="ruby-identifier">flag</span>)
336
330
  <span class="ruby-ivar">@@show_src</span> = <span class="ruby-identifier">flag</span>
337
331
  <span class="ruby-keyword kw">end</span>
@@ -125,7 +125,7 @@
125
125
  onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
126
126
  <div class="method-source-code" id="M000086-source">
127
127
  <pre>
128
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 92</span>
128
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 88</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">params</span>={})
130
130
  <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">dup</span>
131
131
  <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:pattern</span>] = <span class="ruby-value str">'\[% %\]'</span> <span class="ruby-comment cmt"># use '[%= %]' instead of '&lt;%= %&gt;'</span>
@@ -153,7 +153,7 @@
153
153
  onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
154
154
  <div class="method-source-code" id="M000087-source">
155
155
  <pre>
156
- <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 98</span>
156
+ <span class="ruby-comment cmt"># File erubis/helpers/rails_helper.rb, line 94</span>
157
157
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
158
158
  <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-node">&quot;_decode((#{code}))&quot;</span>)
159
159
  <span class="ruby-keyword kw">end</span>
@@ -80,15 +80,15 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000155">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000154">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000153">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000156">add_postamble</a>&nbsp;&nbsp;
87
- <a href="#M000149">add_preamble</a>&nbsp;&nbsp;
88
- <a href="#M000152">add_stmt</a>&nbsp;&nbsp;
89
- <a href="#M000151">add_text</a>&nbsp;&nbsp;
90
- <a href="#M000150">escape_text</a>&nbsp;&nbsp;
91
- <a href="#M000148">init_generator</a>&nbsp;&nbsp;
83
+ <a href="#M000179">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000178">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000177">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000180">add_postamble</a>&nbsp;&nbsp;
87
+ <a href="#M000173">add_preamble</a>&nbsp;&nbsp;
88
+ <a href="#M000176">add_stmt</a>&nbsp;&nbsp;
89
+ <a href="#M000175">add_text</a>&nbsp;&nbsp;
90
+ <a href="#M000174">escape_text</a>&nbsp;&nbsp;
91
+ <a href="#M000172">init_generator</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -117,19 +117,19 @@
117
117
  <div id="methods">
118
118
  <h3 class="section-bar">Public Instance methods</h3>
119
119
 
120
- <div id="method-M000155" class="method-detail">
121
- <a name="M000155"></a>
120
+ <div id="method-M000179" class="method-detail">
121
+ <a name="M000179"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000155" class="method-signature">
124
+ <a href="#M000179" class="method-signature">
125
125
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
126
126
  </a>
127
127
  </div>
128
128
 
129
129
  <div class="method-description">
130
130
  <p><a class="source-toggle" href="#"
131
- onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000155-source">
131
+ onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000179-source">
133
133
  <pre>
134
134
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 69</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -142,19 +142,19 @@
142
142
  </div>
143
143
  </div>
144
144
 
145
- <div id="method-M000154" class="method-detail">
146
- <a name="M000154"></a>
145
+ <div id="method-M000178" class="method-detail">
146
+ <a name="M000178"></a>
147
147
 
148
148
  <div class="method-heading">
149
- <a href="#M000154" class="method-signature">
149
+ <a href="#M000178" class="method-signature">
150
150
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
151
151
  </a>
152
152
  </div>
153
153
 
154
154
  <div class="method-description">
155
155
  <p><a class="source-toggle" href="#"
156
- onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
157
- <div class="method-source-code" id="M000154-source">
156
+ onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
157
+ <div class="method-source-code" id="M000178-source">
158
158
  <pre>
159
159
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 65</span>
160
160
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -165,19 +165,19 @@
165
165
  </div>
166
166
  </div>
167
167
 
168
- <div id="method-M000153" class="method-detail">
169
- <a name="M000153"></a>
168
+ <div id="method-M000177" class="method-detail">
169
+ <a name="M000177"></a>
170
170
 
171
171
  <div class="method-heading">
172
- <a href="#M000153" class="method-signature">
172
+ <a href="#M000177" class="method-signature">
173
173
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
174
174
  </a>
175
175
  </div>
176
176
 
177
177
  <div class="method-description">
178
178
  <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000153-source">
179
+ onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
180
+ <div class="method-source-code" id="M000177-source">
181
181
  <pre>
182
182
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 59</span>
183
183
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -190,19 +190,19 @@
190
190
  </div>
191
191
  </div>
192
192
 
193
- <div id="method-M000156" class="method-detail">
194
- <a name="M000156"></a>
193
+ <div id="method-M000180" class="method-detail">
194
+ <a name="M000180"></a>
195
195
 
196
196
  <div class="method-heading">
197
- <a href="#M000156" class="method-signature">
197
+ <a href="#M000180" class="method-signature">
198
198
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
199
199
  </a>
200
200
  </div>
201
201
 
202
202
  <div class="method-description">
203
203
  <p><a class="source-toggle" href="#"
204
- onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
205
- <div class="method-source-code" id="M000156-source">
204
+ onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
205
+ <div class="method-source-code" id="M000180-source">
206
206
  <pre>
207
207
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 75</span>
208
208
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -215,19 +215,19 @@
215
215
  </div>
216
216
  </div>
217
217
 
218
- <div id="method-M000149" class="method-detail">
219
- <a name="M000149"></a>
218
+ <div id="method-M000173" class="method-detail">
219
+ <a name="M000173"></a>
220
220
 
221
221
  <div class="method-heading">
222
- <a href="#M000149" class="method-signature">
222
+ <a href="#M000173" class="method-signature">
223
223
  <span class="method-name">add_preamble</span><span class="method-args">(src)</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('M000149-source');return false;">[Source]</a></p>
230
- <div class="method-source-code" id="M000149-source">
229
+ onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
230
+ <div class="method-source-code" id="M000173-source">
231
231
  <pre>
232
232
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 33</span>
233
233
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -238,19 +238,19 @@
238
238
  </div>
239
239
  </div>
240
240
 
241
- <div id="method-M000152" class="method-detail">
242
- <a name="M000152"></a>
241
+ <div id="method-M000176" class="method-detail">
242
+ <a name="M000176"></a>
243
243
 
244
244
  <div class="method-heading">
245
- <a href="#M000152" class="method-signature">
245
+ <a href="#M000176" class="method-signature">
246
246
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
247
247
  </a>
248
248
  </div>
249
249
 
250
250
  <div class="method-description">
251
251
  <p><a class="source-toggle" href="#"
252
- onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
253
- <div class="method-source-code" id="M000152-source">
252
+ onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
253
+ <div class="method-source-code" id="M000176-source">
254
254
  <pre>
255
255
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 55</span>
256
256
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -261,19 +261,19 @@
261
261
  </div>
262
262
  </div>
263
263
 
264
- <div id="method-M000151" class="method-detail">
265
- <a name="M000151"></a>
264
+ <div id="method-M000175" class="method-detail">
265
+ <a name="M000175"></a>
266
266
 
267
267
  <div class="method-heading">
268
- <a href="#M000151" class="method-signature">
268
+ <a href="#M000175" class="method-signature">
269
269
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
270
270
  </a>
271
271
  </div>
272
272
 
273
273
  <div class="method-description">
274
274
  <p><a class="source-toggle" href="#"
275
- onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
276
- <div class="method-source-code" id="M000151-source">
275
+ onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000175-source">
277
277
  <pre>
278
278
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 42</span>
279
279
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -293,19 +293,19 @@
293
293
  </div>
294
294
  </div>
295
295
 
296
- <div id="method-M000150" class="method-detail">
297
- <a name="M000150"></a>
296
+ <div id="method-M000174" class="method-detail">
297
+ <a name="M000174"></a>
298
298
 
299
299
  <div class="method-heading">
300
- <a href="#M000150" class="method-signature">
300
+ <a href="#M000174" class="method-signature">
301
301
  <span class="method-name">escape_text</span><span class="method-args">(text)</span>
302
302
  </a>
303
303
  </div>
304
304
 
305
305
  <div class="method-description">
306
306
  <p><a class="source-toggle" href="#"
307
- onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
308
- <div class="method-source-code" id="M000150-source">
307
+ onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
308
+ <div class="method-source-code" id="M000174-source">
309
309
  <pre>
310
310
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 37</span>
311
311
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -317,19 +317,19 @@
317
317
  </div>
318
318
  </div>
319
319
 
320
- <div id="method-M000148" class="method-detail">
321
- <a name="M000148"></a>
320
+ <div id="method-M000172" class="method-detail">
321
+ <a name="M000172"></a>
322
322
 
323
323
  <div class="method-heading">
324
- <a href="#M000148" class="method-signature">
324
+ <a href="#M000172" class="method-signature">
325
325
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
326
326
  </a>
327
327
  </div>
328
328
 
329
329
  <div class="method-description">
330
330
  <p><a class="source-toggle" href="#"
331
- onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
332
- <div class="method-source-code" id="M000148-source">
331
+ onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
332
+ <div class="method-source-code" id="M000172-source">
333
333
  <pre>
334
334
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 25</span>
335
335
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
@@ -80,16 +80,16 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000146">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000145">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000144">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000141">add_indent</a>&nbsp;&nbsp;
87
- <a href="#M000147">add_postamble</a>&nbsp;&nbsp;
88
- <a href="#M000139">add_preamble</a>&nbsp;&nbsp;
89
- <a href="#M000143">add_stmt</a>&nbsp;&nbsp;
90
- <a href="#M000142">add_text</a>&nbsp;&nbsp;
91
- <a href="#M000140">escape_text</a>&nbsp;&nbsp;
92
- <a href="#M000138">init_generator</a>&nbsp;&nbsp;
83
+ <a href="#M000170">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000169">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000168">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000165">add_indent</a>&nbsp;&nbsp;
87
+ <a href="#M000171">add_postamble</a>&nbsp;&nbsp;
88
+ <a href="#M000163">add_preamble</a>&nbsp;&nbsp;
89
+ <a href="#M000167">add_stmt</a>&nbsp;&nbsp;
90
+ <a href="#M000166">add_text</a>&nbsp;&nbsp;
91
+ <a href="#M000164">escape_text</a>&nbsp;&nbsp;
92
+ <a href="#M000162">init_generator</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -118,19 +118,19 @@
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Instance methods</h3>
120
120
 
121
- <div id="method-M000146" class="method-detail">
122
- <a name="M000146"></a>
121
+ <div id="method-M000170" class="method-detail">
122
+ <a name="M000170"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="#M000146" class="method-signature">
125
+ <a href="#M000170" class="method-signature">
126
126
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
127
127
  </a>
128
128
  </div>
129
129
 
130
130
  <div class="method-description">
131
131
  <p><a class="source-toggle" href="#"
132
- onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
133
- <div class="method-source-code" id="M000146-source">
132
+ onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
133
+ <div class="method-source-code" id="M000170-source">
134
134
  <pre>
135
135
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 73</span>
136
136
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -143,19 +143,19 @@
143
143
  </div>
144
144
  </div>
145
145
 
146
- <div id="method-M000145" class="method-detail">
147
- <a name="M000145"></a>
146
+ <div id="method-M000169" class="method-detail">
147
+ <a name="M000169"></a>
148
148
 
149
149
  <div class="method-heading">
150
- <a href="#M000145" class="method-signature">
150
+ <a href="#M000169" class="method-signature">
151
151
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
152
152
  </a>
153
153
  </div>
154
154
 
155
155
  <div class="method-description">
156
156
  <p><a class="source-toggle" href="#"
157
- onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
158
- <div class="method-source-code" id="M000145-source">
157
+ onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
158
+ <div class="method-source-code" id="M000169-source">
159
159
  <pre>
160
160
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 69</span>
161
161
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -166,19 +166,19 @@
166
166
  </div>
167
167
  </div>
168
168
 
169
- <div id="method-M000144" class="method-detail">
170
- <a name="M000144"></a>
169
+ <div id="method-M000168" class="method-detail">
170
+ <a name="M000168"></a>
171
171
 
172
172
  <div class="method-heading">
173
- <a href="#M000144" class="method-signature">
173
+ <a href="#M000168" class="method-signature">
174
174
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
175
175
  </a>
176
176
  </div>
177
177
 
178
178
  <div class="method-description">
179
179
  <p><a class="source-toggle" href="#"
180
- onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
181
- <div class="method-source-code" id="M000144-source">
180
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
181
+ <div class="method-source-code" id="M000168-source">
182
182
  <pre>
183
183
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 63</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -191,19 +191,19 @@
191
191
  </div>
192
192
  </div>
193
193
 
194
- <div id="method-M000141" class="method-detail">
195
- <a name="M000141"></a>
194
+ <div id="method-M000165" class="method-detail">
195
+ <a name="M000165"></a>
196
196
 
197
197
  <div class="method-heading">
198
- <a href="#M000141" class="method-signature">
198
+ <a href="#M000165" class="method-signature">
199
199
  <span class="method-name">add_indent</span><span class="method-args">(src, indent)</span>
200
200
  </a>
201
201
  </div>
202
202
 
203
203
  <div class="method-description">
204
204
  <p><a class="source-toggle" href="#"
205
- onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
206
- <div class="method-source-code" id="M000141-source">
205
+ onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
206
+ <div class="method-source-code" id="M000165-source">
207
207
  <pre>
208
208
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 42</span>
209
209
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_indent</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">indent</span>)
@@ -214,19 +214,19 @@
214
214
  </div>
215
215
  </div>
216
216
 
217
- <div id="method-M000147" class="method-detail">
218
- <a name="M000147"></a>
217
+ <div id="method-M000171" class="method-detail">
218
+ <a name="M000171"></a>
219
219
 
220
220
  <div class="method-heading">
221
- <a href="#M000147" class="method-signature">
221
+ <a href="#M000171" class="method-signature">
222
222
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
223
223
  </a>
224
224
  </div>
225
225
 
226
226
  <div class="method-description">
227
227
  <p><a class="source-toggle" href="#"
228
- onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
229
- <div class="method-source-code" id="M000147-source">
228
+ onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
229
+ <div class="method-source-code" id="M000171-source">
230
230
  <pre>
231
231
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 79</span>
232
232
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -242,19 +242,19 @@
242
242
  </div>
243
243
  </div>
244
244
 
245
- <div id="method-M000139" class="method-detail">
246
- <a name="M000139"></a>
245
+ <div id="method-M000163" class="method-detail">
246
+ <a name="M000163"></a>
247
247
 
248
248
  <div class="method-heading">
249
- <a href="#M000139" class="method-signature">
249
+ <a href="#M000163" class="method-signature">
250
250
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
251
251
  </a>
252
252
  </div>
253
253
 
254
254
  <div class="method-description">
255
255
  <p><a class="source-toggle" href="#"
256
- onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
257
- <div class="method-source-code" id="M000139-source">
256
+ onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
257
+ <div class="method-source-code" id="M000163-source">
258
258
  <pre>
259
259
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 33</span>
260
260
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -265,19 +265,19 @@
265
265
  </div>
266
266
  </div>
267
267
 
268
- <div id="method-M000143" class="method-detail">
269
- <a name="M000143"></a>
268
+ <div id="method-M000167" class="method-detail">
269
+ <a name="M000167"></a>
270
270
 
271
271
  <div class="method-heading">
272
- <a href="#M000143" class="method-signature">
272
+ <a href="#M000167" class="method-signature">
273
273
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
274
274
  </a>
275
275
  </div>
276
276
 
277
277
  <div class="method-description">
278
278
  <p><a class="source-toggle" href="#"
279
- onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
280
- <div class="method-source-code" id="M000143-source">
279
+ onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
280
+ <div class="method-source-code" id="M000167-source">
281
281
  <pre>
282
282
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 59</span>
283
283
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -288,19 +288,19 @@
288
288
  </div>
289
289
  </div>
290
290
 
291
- <div id="method-M000142" class="method-detail">
292
- <a name="M000142"></a>
291
+ <div id="method-M000166" class="method-detail">
292
+ <a name="M000166"></a>
293
293
 
294
294
  <div class="method-heading">
295
- <a href="#M000142" class="method-signature">
295
+ <a href="#M000166" class="method-signature">
296
296
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
297
297
  </a>
298
298
  </div>
299
299
 
300
300
  <div class="method-description">
301
301
  <p><a class="source-toggle" href="#"
302
- onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
303
- <div class="method-source-code" id="M000142-source">
302
+ onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
303
+ <div class="method-source-code" id="M000166-source">
304
304
  <pre>
305
305
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 46</span>
306
306
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -320,19 +320,19 @@
320
320
  </div>
321
321
  </div>
322
322
 
323
- <div id="method-M000140" class="method-detail">
324
- <a name="M000140"></a>
323
+ <div id="method-M000164" class="method-detail">
324
+ <a name="M000164"></a>
325
325
 
326
326
  <div class="method-heading">
327
- <a href="#M000140" class="method-signature">
327
+ <a href="#M000164" class="method-signature">
328
328
  <span class="method-name">escape_text</span><span class="method-args">(text)</span>
329
329
  </a>
330
330
  </div>
331
331
 
332
332
  <div class="method-description">
333
333
  <p><a class="source-toggle" href="#"
334
- onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
335
- <div class="method-source-code" id="M000140-source">
334
+ onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
335
+ <div class="method-source-code" id="M000164-source">
336
336
  <pre>
337
337
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 37</span>
338
338
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -344,19 +344,19 @@
344
344
  </div>
345
345
  </div>
346
346
 
347
- <div id="method-M000138" class="method-detail">
348
- <a name="M000138"></a>
347
+ <div id="method-M000162" class="method-detail">
348
+ <a name="M000162"></a>
349
349
 
350
350
  <div class="method-heading">
351
- <a href="#M000138" class="method-signature">
351
+ <a href="#M000162" class="method-signature">
352
352
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
353
353
  </a>
354
354
  </div>
355
355
 
356
356
  <div class="method-description">
357
357
  <p><a class="source-toggle" href="#"
358
- onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
359
- <div class="method-source-code" id="M000138-source">
358
+ onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
359
+ <div class="method-source-code" id="M000162-source">
360
360
  <pre>
361
361
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 25</span>
362
362
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})