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
@@ -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 ‘action_view/base.rb‘
|
94
|
-
|
95
|
-
<pre>
|
96
|
-
$ cd /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/
|
97
|
-
$ sudo patch -p1 < /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
|
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 (‘log/development.log’ or so).
|
108
|
-
|
100
|
+
file (‘log/development.log’ or so). if false, it doesn‘t.
|
101
|
+
if nil, <a href="../../Erubis.html">Erubis</a> prints converted Ruby code
|
102
|
+
if ENV[‘RAILS_ENV’] == ‘development’.
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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 '<%= %>'</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
|
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">"_decode((#{code}))"</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="#
|
84
|
-
<a href="#
|
85
|
-
<a href="#
|
86
|
-
<a href="#
|
87
|
-
<a href="#
|
88
|
-
<a href="#
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
83
|
+
<a href="#M000179">add_expr_debug</a>
|
84
|
+
<a href="#M000178">add_expr_escaped</a>
|
85
|
+
<a href="#M000177">add_expr_literal</a>
|
86
|
+
<a href="#M000180">add_postamble</a>
|
87
|
+
<a href="#M000173">add_preamble</a>
|
88
|
+
<a href="#M000176">add_stmt</a>
|
89
|
+
<a href="#M000175">add_text</a>
|
90
|
+
<a href="#M000174">escape_text</a>
|
91
|
+
<a href="#M000172">init_generator</a>
|
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-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000179" class="method-detail">
|
121
|
+
<a name="M000179"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
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('
|
132
|
-
<div class="method-source-code" id="
|
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-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000178" class="method-detail">
|
146
|
+
<a name="M000178"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
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('
|
157
|
-
<div class="method-source-code" id="
|
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-
|
169
|
-
<a name="
|
168
|
+
<div id="method-M000177" class="method-detail">
|
169
|
+
<a name="M000177"></a>
|
170
170
|
|
171
171
|
<div class="method-heading">
|
172
|
-
<a href="#
|
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('
|
180
|
-
<div class="method-source-code" id="
|
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-
|
194
|
-
<a name="
|
193
|
+
<div id="method-M000180" class="method-detail">
|
194
|
+
<a name="M000180"></a>
|
195
195
|
|
196
196
|
<div class="method-heading">
|
197
|
-
<a href="#
|
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('
|
205
|
-
<div class="method-source-code" id="
|
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-
|
219
|
-
<a name="
|
218
|
+
<div id="method-M000173" class="method-detail">
|
219
|
+
<a name="M000173"></a>
|
220
220
|
|
221
221
|
<div class="method-heading">
|
222
|
-
<a href="#
|
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('
|
230
|
-
<div class="method-source-code" id="
|
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-
|
242
|
-
<a name="
|
241
|
+
<div id="method-M000176" class="method-detail">
|
242
|
+
<a name="M000176"></a>
|
243
243
|
|
244
244
|
<div class="method-heading">
|
245
|
-
<a href="#
|
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('
|
253
|
-
<div class="method-source-code" id="
|
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-
|
265
|
-
<a name="
|
264
|
+
<div id="method-M000175" class="method-detail">
|
265
|
+
<a name="M000175"></a>
|
266
266
|
|
267
267
|
<div class="method-heading">
|
268
|
-
<a href="#
|
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('
|
276
|
-
<div class="method-source-code" id="
|
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-
|
297
|
-
<a name="
|
296
|
+
<div id="method-M000174" class="method-detail">
|
297
|
+
<a name="M000174"></a>
|
298
298
|
|
299
299
|
<div class="method-heading">
|
300
|
-
<a href="#
|
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('
|
308
|
-
<div class="method-source-code" id="
|
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-
|
321
|
-
<a name="
|
320
|
+
<div id="method-M000172" class="method-detail">
|
321
|
+
<a name="M000172"></a>
|
322
322
|
|
323
323
|
<div class="method-heading">
|
324
|
-
<a href="#
|
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('
|
332
|
-
<div class="method-source-code" id="
|
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="#
|
84
|
-
<a href="#
|
85
|
-
<a href="#
|
86
|
-
<a href="#
|
87
|
-
<a href="#
|
88
|
-
<a href="#
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
83
|
+
<a href="#M000170">add_expr_debug</a>
|
84
|
+
<a href="#M000169">add_expr_escaped</a>
|
85
|
+
<a href="#M000168">add_expr_literal</a>
|
86
|
+
<a href="#M000165">add_indent</a>
|
87
|
+
<a href="#M000171">add_postamble</a>
|
88
|
+
<a href="#M000163">add_preamble</a>
|
89
|
+
<a href="#M000167">add_stmt</a>
|
90
|
+
<a href="#M000166">add_text</a>
|
91
|
+
<a href="#M000164">escape_text</a>
|
92
|
+
<a href="#M000162">init_generator</a>
|
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-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000170" class="method-detail">
|
122
|
+
<a name="M000170"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
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('
|
133
|
-
<div class="method-source-code" id="
|
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-
|
147
|
-
<a name="
|
146
|
+
<div id="method-M000169" class="method-detail">
|
147
|
+
<a name="M000169"></a>
|
148
148
|
|
149
149
|
<div class="method-heading">
|
150
|
-
<a href="#
|
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('
|
158
|
-
<div class="method-source-code" id="
|
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-
|
170
|
-
<a name="
|
169
|
+
<div id="method-M000168" class="method-detail">
|
170
|
+
<a name="M000168"></a>
|
171
171
|
|
172
172
|
<div class="method-heading">
|
173
|
-
<a href="#
|
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('
|
181
|
-
<div class="method-source-code" id="
|
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-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000165" class="method-detail">
|
195
|
+
<a name="M000165"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="#
|
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('
|
206
|
-
<div class="method-source-code" id="
|
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-
|
218
|
-
<a name="
|
217
|
+
<div id="method-M000171" class="method-detail">
|
218
|
+
<a name="M000171"></a>
|
219
219
|
|
220
220
|
<div class="method-heading">
|
221
|
-
<a href="#
|
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('
|
229
|
-
<div class="method-source-code" id="
|
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-
|
246
|
-
<a name="
|
245
|
+
<div id="method-M000163" class="method-detail">
|
246
|
+
<a name="M000163"></a>
|
247
247
|
|
248
248
|
<div class="method-heading">
|
249
|
-
<a href="#
|
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('
|
257
|
-
<div class="method-source-code" id="
|
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-
|
269
|
-
<a name="
|
268
|
+
<div id="method-M000167" class="method-detail">
|
269
|
+
<a name="M000167"></a>
|
270
270
|
|
271
271
|
<div class="method-heading">
|
272
|
-
<a href="#
|
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('
|
280
|
-
<div class="method-source-code" id="
|
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-
|
292
|
-
<a name="
|
291
|
+
<div id="method-M000166" class="method-detail">
|
292
|
+
<a name="M000166"></a>
|
293
293
|
|
294
294
|
<div class="method-heading">
|
295
|
-
<a href="#
|
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('
|
303
|
-
<div class="method-source-code" id="
|
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-
|
324
|
-
<a name="
|
323
|
+
<div id="method-M000164" class="method-detail">
|
324
|
+
<a name="M000164"></a>
|
325
325
|
|
326
326
|
<div class="method-heading">
|
327
|
-
<a href="#
|
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('
|
335
|
-
<div class="method-source-code" id="
|
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-
|
348
|
-
<a name="
|
347
|
+
<div id="method-M000162" class="method-detail">
|
348
|
+
<a name="M000162"></a>
|
349
349
|
|
350
350
|
<div class="method-heading">
|
351
|
-
<a href="#
|
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('
|
359
|
-
<div class="method-source-code" id="
|
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>={})
|