erubis 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +1 -1
- data/README.txt +1 -1
- data/benchmark/erubybench.rb +1 -1
- data/bin/erubis +1 -1
- data/contrib/erubis +72 -67
- data/contrib/inline-require +1 -1
- data/doc-api/classes/Erubis.html +1 -1
- data/doc-api/classes/Erubis/Context.html +25 -25
- data/doc-api/classes/Erubis/Ec.html +61 -60
- data/doc-api/classes/Erubis/Ejava.html +85 -60
- data/doc-api/classes/Erubis/Ejavascript.html +74 -49
- data/doc-api/classes/Erubis/Engine.html +151 -136
- data/doc-api/classes/Erubis/Eperl.html +87 -61
- data/doc-api/classes/Erubis/Ephp.html +97 -49
- data/doc-api/classes/Erubis/Eruby.html +42 -42
- data/doc-api/classes/Erubis/Escheme.html +60 -60
- data/doc-api/classes/Erubis/Main.html +18 -18
- data/doc-api/classes/Erubis/OptimizedEruby.html +72 -72
- data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
- data/doc-api/classes/Erubis/TinyEruby.html +30 -30
- data/doc-api/created.rid +1 -1
- data/doc-api/files/__/README_txt.html +1 -1
- data/doc-api/files/erubis/engine/ec_rb.html +2 -2
- data/doc-api/files/erubis/engine/ejava_rb.html +2 -2
- data/doc-api/files/erubis/engine/ejavascript_rb.html +2 -2
- data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
- data/doc-api/files/erubis/engine/eperl_rb.html +2 -2
- data/doc-api/files/erubis/engine/ephp_rb.html +2 -2
- 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 +2 -2
- data/doc-api/files/erubis/engine_rb.html +2 -2
- data/doc-api/files/erubis/enhancer_rb.html +1 -1
- data/doc-api/files/erubis/helper_rb.html +1 -1
- 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 +1 -1
- data/doc-api/fr_method_index.html +110 -105
- data/lib/erubis.rb +1 -1
- data/lib/erubis/engine.rb +30 -19
- data/lib/erubis/engine/ec.rb +3 -2
- data/lib/erubis/engine/ejava.rb +6 -8
- data/lib/erubis/engine/ejavascript.rb +6 -8
- data/lib/erubis/engine/enhanced.rb +1 -1
- data/lib/erubis/engine/eperl.rb +7 -8
- data/lib/erubis/engine/ephp.rb +8 -10
- data/lib/erubis/engine/eruby.rb +1 -1
- data/lib/erubis/engine/escheme.rb +1 -1
- data/lib/erubis/engine/optimized.rb +1 -1
- data/lib/erubis/enhancer.rb +1 -1
- data/lib/erubis/helper.rb +1 -1
- data/lib/erubis/local-setting.rb +1 -1
- data/lib/erubis/main.rb +2 -2
- data/lib/erubis/tiny.rb +1 -1
- data/test/assert-text-equal.rb +1 -1
- data/test/test-bin.rb +2 -2
- data/test/test-engines.rb +1 -1
- data/test/test-erubis.rb +1 -1
- data/test/test.rb +1 -1
- data/test/testutil.rb +1 -1
- metadata +2 -2
@@ -94,16 +94,16 @@ engine for C
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
97
|
+
<a href="#M000118">add_expr_debug</a>
|
98
|
+
<a href="#M000117">add_expr_escaped</a>
|
99
|
+
<a href="#M000116">add_expr_literal</a>
|
100
|
+
<a href="#M000119">add_postamble</a>
|
101
|
+
<a href="#M000111">add_preamble</a>
|
102
|
+
<a href="#M000115">add_stmt</a>
|
103
|
+
<a href="#M000114">add_text</a>
|
104
|
+
<a href="#M000112">escape_text</a>
|
105
|
+
<a href="#M000113">escaped_expr</a>
|
106
|
+
<a href="#M000110">new</a>
|
107
107
|
</div>
|
108
108
|
</div>
|
109
109
|
|
@@ -125,19 +125,19 @@ engine for C
|
|
125
125
|
<div id="methods">
|
126
126
|
<h3 class="section-bar">Public Class methods</h3>
|
127
127
|
|
128
|
-
<div id="method-
|
129
|
-
<a name="
|
128
|
+
<div id="method-M000110" class="method-detail">
|
129
|
+
<a name="M000110"></a>
|
130
130
|
|
131
131
|
<div class="method-heading">
|
132
|
-
<a href="#
|
132
|
+
<a href="#M000110" class="method-signature">
|
133
133
|
<span class="method-name">new</span><span class="method-args">(input, properties={})</span>
|
134
134
|
</a>
|
135
135
|
</div>
|
136
136
|
|
137
137
|
<div class="method-description">
|
138
138
|
<p><a class="source-toggle" href="#"
|
139
|
-
onclick="toggleCode('
|
140
|
-
<div class="method-source-code" id="
|
139
|
+
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000110-source">
|
141
141
|
<pre>
|
142
142
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 26</span>
|
143
143
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">properties</span>={})
|
@@ -152,19 +152,19 @@ engine for C
|
|
152
152
|
|
153
153
|
<h3 class="section-bar">Public Instance methods</h3>
|
154
154
|
|
155
|
-
<div id="method-
|
156
|
-
<a name="
|
155
|
+
<div id="method-M000118" class="method-detail">
|
156
|
+
<a name="M000118"></a>
|
157
157
|
|
158
158
|
<div class="method-heading">
|
159
|
-
<a href="#
|
159
|
+
<a href="#M000118" class="method-signature">
|
160
160
|
<span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
|
161
161
|
</a>
|
162
162
|
</div>
|
163
163
|
|
164
164
|
<div class="method-description">
|
165
165
|
<p><a class="source-toggle" href="#"
|
166
|
-
onclick="toggleCode('
|
167
|
-
<div class="method-source-code" id="
|
166
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
167
|
+
<div class="method-source-code" id="M000118-source">
|
168
168
|
<pre>
|
169
169
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 80</span>
|
170
170
|
<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>)
|
@@ -181,19 +181,19 @@ engine for C
|
|
181
181
|
</div>
|
182
182
|
</div>
|
183
183
|
|
184
|
-
<div id="method-
|
185
|
-
<a name="
|
184
|
+
<div id="method-M000117" class="method-detail">
|
185
|
+
<a name="M000117"></a>
|
186
186
|
|
187
187
|
<div class="method-heading">
|
188
|
-
<a href="#
|
188
|
+
<a href="#M000117" class="method-signature">
|
189
189
|
<span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
|
190
190
|
</a>
|
191
191
|
</div>
|
192
192
|
|
193
193
|
<div class="method-description">
|
194
194
|
<p><a class="source-toggle" href="#"
|
195
|
-
onclick="toggleCode('
|
196
|
-
<div class="method-source-code" id="
|
195
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
196
|
+
<div class="method-source-code" id="M000117-source">
|
197
197
|
<pre>
|
198
198
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 75</span>
|
199
199
|
<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>)
|
@@ -205,19 +205,19 @@ engine for C
|
|
205
205
|
</div>
|
206
206
|
</div>
|
207
207
|
|
208
|
-
<div id="method-
|
209
|
-
<a name="
|
208
|
+
<div id="method-M000116" class="method-detail">
|
209
|
+
<a name="M000116"></a>
|
210
210
|
|
211
211
|
<div class="method-heading">
|
212
|
-
<a href="#
|
212
|
+
<a href="#M000116" class="method-signature">
|
213
213
|
<span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
|
214
214
|
</a>
|
215
215
|
</div>
|
216
216
|
|
217
217
|
<div class="method-description">
|
218
218
|
<p><a class="source-toggle" href="#"
|
219
|
-
onclick="toggleCode('
|
220
|
-
<div class="method-source-code" id="
|
219
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
220
|
+
<div class="method-source-code" id="M000116-source">
|
221
221
|
<pre>
|
222
222
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 70</span>
|
223
223
|
<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>)
|
@@ -229,41 +229,42 @@ engine for C
|
|
229
229
|
</div>
|
230
230
|
</div>
|
231
231
|
|
232
|
-
<div id="method-
|
233
|
-
<a name="
|
232
|
+
<div id="method-M000119" class="method-detail">
|
233
|
+
<a name="M000119"></a>
|
234
234
|
|
235
235
|
<div class="method-heading">
|
236
|
-
<a href="#
|
236
|
+
<a href="#M000119" class="method-signature">
|
237
237
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
238
238
|
</a>
|
239
239
|
</div>
|
240
240
|
|
241
241
|
<div class="method-description">
|
242
242
|
<p><a class="source-toggle" href="#"
|
243
|
-
onclick="toggleCode('
|
244
|
-
<div class="method-source-code" id="
|
243
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000119-source">
|
245
245
|
<pre>
|
246
246
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 90</span>
|
247
247
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
248
|
+
<span class="ruby-comment cmt"># empty</span>
|
248
249
|
<span class="ruby-keyword kw">end</span>
|
249
250
|
</pre>
|
250
251
|
</div>
|
251
252
|
</div>
|
252
253
|
</div>
|
253
254
|
|
254
|
-
<div id="method-
|
255
|
-
<a name="
|
255
|
+
<div id="method-M000111" class="method-detail">
|
256
|
+
<a name="M000111"></a>
|
256
257
|
|
257
258
|
<div class="method-heading">
|
258
|
-
<a href="#
|
259
|
+
<a href="#M000111" class="method-signature">
|
259
260
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
260
261
|
</a>
|
261
262
|
</div>
|
262
263
|
|
263
264
|
<div class="method-description">
|
264
265
|
<p><a class="source-toggle" href="#"
|
265
|
-
onclick="toggleCode('
|
266
|
-
<div class="method-source-code" id="
|
266
|
+
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
267
|
+
<div class="method-source-code" id="M000111-source">
|
267
268
|
<pre>
|
268
269
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 32</span>
|
269
270
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -274,19 +275,19 @@ engine for C
|
|
274
275
|
</div>
|
275
276
|
</div>
|
276
277
|
|
277
|
-
<div id="method-
|
278
|
-
<a name="
|
278
|
+
<div id="method-M000115" class="method-detail">
|
279
|
+
<a name="M000115"></a>
|
279
280
|
|
280
281
|
<div class="method-heading">
|
281
|
-
<a href="#
|
282
|
+
<a href="#M000115" class="method-signature">
|
282
283
|
<span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
|
283
284
|
</a>
|
284
285
|
</div>
|
285
286
|
|
286
287
|
<div class="method-description">
|
287
288
|
<p><a class="source-toggle" href="#"
|
288
|
-
onclick="toggleCode('
|
289
|
-
<div class="method-source-code" id="
|
289
|
+
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
290
|
+
<div class="method-source-code" id="M000115-source">
|
290
291
|
<pre>
|
291
292
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 66</span>
|
292
293
|
<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>)
|
@@ -297,19 +298,19 @@ engine for C
|
|
297
298
|
</div>
|
298
299
|
</div>
|
299
300
|
|
300
|
-
<div id="method-
|
301
|
-
<a name="
|
301
|
+
<div id="method-M000114" class="method-detail">
|
302
|
+
<a name="M000114"></a>
|
302
303
|
|
303
304
|
<div class="method-heading">
|
304
|
-
<a href="#
|
305
|
+
<a href="#M000114" class="method-signature">
|
305
306
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
|
306
307
|
</a>
|
307
308
|
</div>
|
308
309
|
|
309
310
|
<div class="method-description">
|
310
311
|
<p><a class="source-toggle" href="#"
|
311
|
-
onclick="toggleCode('
|
312
|
-
<div class="method-source-code" id="
|
312
|
+
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
313
|
+
<div class="method-source-code" id="M000114-source">
|
313
314
|
<pre>
|
314
315
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 52</span>
|
315
316
|
<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>)
|
@@ -330,19 +331,19 @@ engine for C
|
|
330
331
|
</div>
|
331
332
|
</div>
|
332
333
|
|
333
|
-
<div id="method-
|
334
|
-
<a name="
|
334
|
+
<div id="method-M000112" class="method-detail">
|
335
|
+
<a name="M000112"></a>
|
335
336
|
|
336
337
|
<div class="method-heading">
|
337
|
-
<a href="#
|
338
|
+
<a href="#M000112" class="method-signature">
|
338
339
|
<span class="method-name">escape_text</span><span class="method-args">(text)</span>
|
339
340
|
</a>
|
340
341
|
</div>
|
341
342
|
|
342
343
|
<div class="method-description">
|
343
344
|
<p><a class="source-toggle" href="#"
|
344
|
-
onclick="toggleCode('
|
345
|
-
<div class="method-source-code" id="
|
345
|
+
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
346
|
+
<div class="method-source-code" id="M000112-source">
|
346
347
|
<pre>
|
347
348
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 36</span>
|
348
349
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
|
@@ -355,19 +356,19 @@ engine for C
|
|
355
356
|
</div>
|
356
357
|
</div>
|
357
358
|
|
358
|
-
<div id="method-
|
359
|
-
<a name="
|
359
|
+
<div id="method-M000113" class="method-detail">
|
360
|
+
<a name="M000113"></a>
|
360
361
|
|
361
362
|
<div class="method-heading">
|
362
|
-
<a href="#
|
363
|
+
<a href="#M000113" class="method-signature">
|
363
364
|
<span class="method-name">escaped_expr</span><span class="method-args">(code)</span>
|
364
365
|
</a>
|
365
366
|
</div>
|
366
367
|
|
367
368
|
<div class="method-description">
|
368
369
|
<p><a class="source-toggle" href="#"
|
369
|
-
onclick="toggleCode('
|
370
|
-
<div class="method-source-code" id="
|
370
|
+
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
371
|
+
<div class="method-source-code" id="M000113-source">
|
371
372
|
<pre>
|
372
373
|
<span class="ruby-comment cmt"># File erubis/engine/ec.rb, line 42</span>
|
373
374
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
|
@@ -94,15 +94,16 @@ engine for Java
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
97
|
+
<a href="#M000047">add_expr_debug</a>
|
98
|
+
<a href="#M000046">add_expr_escaped</a>
|
99
|
+
<a href="#M000045">add_expr_literal</a>
|
100
|
+
<a href="#M000048">add_postamble</a>
|
101
|
+
<a href="#M000040">add_preamble</a>
|
102
|
+
<a href="#M000044">add_stmt</a>
|
103
|
+
<a href="#M000043">add_text</a>
|
104
|
+
<a href="#M000041">escape_text</a>
|
105
|
+
<a href="#M000042">escaped_expr</a>
|
106
|
+
<a href="#M000039">new</a>
|
106
107
|
</div>
|
107
108
|
</div>
|
108
109
|
|
@@ -124,19 +125,19 @@ engine for Java
|
|
124
125
|
<div id="methods">
|
125
126
|
<h3 class="section-bar">Public Class methods</h3>
|
126
127
|
|
127
|
-
<div id="method-
|
128
|
-
<a name="
|
128
|
+
<div id="method-M000039" class="method-detail">
|
129
|
+
<a name="M000039"></a>
|
129
130
|
|
130
131
|
<div class="method-heading">
|
131
|
-
<a href="#
|
132
|
+
<a href="#M000039" class="method-signature">
|
132
133
|
<span class="method-name">new</span><span class="method-args">(input, properties={})</span>
|
133
134
|
</a>
|
134
135
|
</div>
|
135
136
|
|
136
137
|
<div class="method-description">
|
137
138
|
<p><a class="source-toggle" href="#"
|
138
|
-
onclick="toggleCode('
|
139
|
-
<div class="method-source-code" id="
|
139
|
+
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
140
|
+
<div class="method-source-code" id="M000039-source">
|
140
141
|
<pre>
|
141
142
|
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 27</span>
|
142
143
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">properties</span>={})
|
@@ -152,21 +153,21 @@ engine for Java
|
|
152
153
|
|
153
154
|
<h3 class="section-bar">Public Instance methods</h3>
|
154
155
|
|
155
|
-
<div id="method-
|
156
|
-
<a name="
|
156
|
+
<div id="method-M000047" class="method-detail">
|
157
|
+
<a name="M000047"></a>
|
157
158
|
|
158
159
|
<div class="method-heading">
|
159
|
-
<a href="#
|
160
|
+
<a href="#M000047" class="method-signature">
|
160
161
|
<span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
|
161
162
|
</a>
|
162
163
|
</div>
|
163
164
|
|
164
165
|
<div class="method-description">
|
165
166
|
<p><a class="source-toggle" href="#"
|
166
|
-
onclick="toggleCode('
|
167
|
-
<div class="method-source-code" id="
|
167
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
168
|
+
<div class="method-source-code" id="M000047-source">
|
168
169
|
<pre>
|
169
|
-
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line
|
170
|
+
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 75</span>
|
170
171
|
<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>)
|
171
172
|
<span class="ruby-identifier">code</span>.<span class="ruby-identifier">strip!</span>
|
172
173
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@indent</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
|
@@ -177,21 +178,21 @@ engine for Java
|
|
177
178
|
</div>
|
178
179
|
</div>
|
179
180
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
181
|
+
<div id="method-M000046" class="method-detail">
|
182
|
+
<a name="M000046"></a>
|
182
183
|
|
183
184
|
<div class="method-heading">
|
184
|
-
<a href="#
|
185
|
+
<a href="#M000046" class="method-signature">
|
185
186
|
<span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
|
186
187
|
</a>
|
187
188
|
</div>
|
188
189
|
|
189
190
|
<div class="method-description">
|
190
191
|
<p><a class="source-toggle" href="#"
|
191
|
-
onclick="toggleCode('
|
192
|
-
<div class="method-source-code" id="
|
192
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
193
|
+
<div class="method-source-code" id="M000046-source">
|
193
194
|
<pre>
|
194
|
-
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line
|
195
|
+
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 70</span>
|
195
196
|
<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>)
|
196
197
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@indent</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
|
197
198
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">' '</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@buf</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'.append('</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">');'</span>
|
@@ -201,21 +202,21 @@ engine for Java
|
|
201
202
|
</div>
|
202
203
|
</div>
|
203
204
|
|
204
|
-
<div id="method-
|
205
|
-
<a name="
|
205
|
+
<div id="method-M000045" class="method-detail">
|
206
|
+
<a name="M000045"></a>
|
206
207
|
|
207
208
|
<div class="method-heading">
|
208
|
-
<a href="#
|
209
|
+
<a href="#M000045" class="method-signature">
|
209
210
|
<span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
|
210
211
|
</a>
|
211
212
|
</div>
|
212
213
|
|
213
214
|
<div class="method-description">
|
214
215
|
<p><a class="source-toggle" href="#"
|
215
|
-
onclick="toggleCode('
|
216
|
-
<div class="method-source-code" id="
|
216
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
217
|
+
<div class="method-source-code" id="M000045-source">
|
217
218
|
<pre>
|
218
|
-
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line
|
219
|
+
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 65</span>
|
219
220
|
<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>)
|
220
221
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@indent</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
|
221
222
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">' '</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@buf</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'.append('</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">strip</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">');'</span>
|
@@ -225,21 +226,21 @@ engine for Java
|
|
225
226
|
</div>
|
226
227
|
</div>
|
227
228
|
|
228
|
-
<div id="method-
|
229
|
-
<a name="
|
229
|
+
<div id="method-M000048" class="method-detail">
|
230
|
+
<a name="M000048"></a>
|
230
231
|
|
231
232
|
<div class="method-heading">
|
232
|
-
<a href="#
|
233
|
+
<a href="#M000048" class="method-signature">
|
233
234
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
234
235
|
</a>
|
235
236
|
</div>
|
236
237
|
|
237
238
|
<div class="method-description">
|
238
239
|
<p><a class="source-toggle" href="#"
|
239
|
-
onclick="toggleCode('
|
240
|
-
<div class="method-source-code" id="
|
240
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
241
|
+
<div class="method-source-code" id="M000048-source">
|
241
242
|
<pre>
|
242
|
-
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line
|
243
|
+
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 81</span>
|
243
244
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
244
245
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?;</span>
|
245
246
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@indent</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"return "</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@buf</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">".toString();\n"</span>
|
@@ -249,19 +250,19 @@ engine for Java
|
|
249
250
|
</div>
|
250
251
|
</div>
|
251
252
|
|
252
|
-
<div id="method-
|
253
|
-
<a name="
|
253
|
+
<div id="method-M000040" class="method-detail">
|
254
|
+
<a name="M000040"></a>
|
254
255
|
|
255
256
|
<div class="method-heading">
|
256
|
-
<a href="#
|
257
|
+
<a href="#M000040" class="method-signature">
|
257
258
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
258
259
|
</a>
|
259
260
|
</div>
|
260
261
|
|
261
262
|
<div class="method-description">
|
262
263
|
<p><a class="source-toggle" href="#"
|
263
|
-
onclick="toggleCode('
|
264
|
-
<div class="method-source-code" id="
|
264
|
+
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
265
|
+
<div class="method-source-code" id="M000040-source">
|
265
266
|
<pre>
|
266
267
|
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 34</span>
|
267
268
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -272,21 +273,21 @@ engine for Java
|
|
272
273
|
</div>
|
273
274
|
</div>
|
274
275
|
|
275
|
-
<div id="method-
|
276
|
-
<a name="
|
276
|
+
<div id="method-M000044" class="method-detail">
|
277
|
+
<a name="M000044"></a>
|
277
278
|
|
278
279
|
<div class="method-heading">
|
279
|
-
<a href="#
|
280
|
+
<a href="#M000044" class="method-signature">
|
280
281
|
<span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
|
281
282
|
</a>
|
282
283
|
</div>
|
283
284
|
|
284
285
|
<div class="method-description">
|
285
286
|
<p><a class="source-toggle" href="#"
|
286
|
-
onclick="toggleCode('
|
287
|
-
<div class="method-source-code" id="
|
287
|
+
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
288
|
+
<div class="method-source-code" id="M000044-source">
|
288
289
|
<pre>
|
289
|
-
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line
|
290
|
+
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 61</span>
|
290
291
|
<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>)
|
291
292
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">code</span>
|
292
293
|
<span class="ruby-keyword kw">end</span>
|
@@ -295,21 +296,21 @@ engine for Java
|
|
295
296
|
</div>
|
296
297
|
</div>
|
297
298
|
|
298
|
-
<div id="method-
|
299
|
-
<a name="
|
299
|
+
<div id="method-M000043" class="method-detail">
|
300
|
+
<a name="M000043"></a>
|
300
301
|
|
301
302
|
<div class="method-heading">
|
302
|
-
<a href="#
|
303
|
+
<a href="#M000043" class="method-signature">
|
303
304
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
|
304
305
|
</a>
|
305
306
|
</div>
|
306
307
|
|
307
308
|
<div class="method-description">
|
308
309
|
<p><a class="source-toggle" href="#"
|
309
|
-
onclick="toggleCode('
|
310
|
-
<div class="method-source-code" id="
|
310
|
+
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
311
|
+
<div class="method-source-code" id="M000043-source">
|
311
312
|
<pre>
|
312
|
-
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line
|
313
|
+
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 48</span>
|
313
314
|
<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>)
|
314
315
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span>
|
315
316
|
<span class="ruby-identifier">src</span> <span class="ruby-operator"><<</span> (<span class="ruby-identifier">src</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">src</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@indent</span> <span class="ruby-operator">:</span> <span class="ruby-value str">' '</span>)
|
@@ -327,19 +328,19 @@ engine for Java
|
|
327
328
|
</div>
|
328
329
|
</div>
|
329
330
|
|
330
|
-
<div id="method-
|
331
|
-
<a name="
|
331
|
+
<div id="method-M000041" class="method-detail">
|
332
|
+
<a name="M000041"></a>
|
332
333
|
|
333
334
|
<div class="method-heading">
|
334
|
-
<a href="#
|
335
|
+
<a href="#M000041" class="method-signature">
|
335
336
|
<span class="method-name">escape_text</span><span class="method-args">(text)</span>
|
336
337
|
</a>
|
337
338
|
</div>
|
338
339
|
|
339
340
|
<div class="method-description">
|
340
341
|
<p><a class="source-toggle" href="#"
|
341
|
-
onclick="toggleCode('
|
342
|
-
<div class="method-source-code" id="
|
342
|
+
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
343
|
+
<div class="method-source-code" id="M000041-source">
|
343
344
|
<pre>
|
344
345
|
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 38</span>
|
345
346
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
|
@@ -351,6 +352,30 @@ engine for Java
|
|
351
352
|
</div>
|
352
353
|
</div>
|
353
354
|
|
355
|
+
<div id="method-M000042" class="method-detail">
|
356
|
+
<a name="M000042"></a>
|
357
|
+
|
358
|
+
<div class="method-heading">
|
359
|
+
<a href="#M000042" class="method-signature">
|
360
|
+
<span class="method-name">escaped_expr</span><span class="method-args">(code)</span>
|
361
|
+
</a>
|
362
|
+
</div>
|
363
|
+
|
364
|
+
<div class="method-description">
|
365
|
+
<p><a class="source-toggle" href="#"
|
366
|
+
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
367
|
+
<div class="method-source-code" id="M000042-source">
|
368
|
+
<pre>
|
369
|
+
<span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 43</span>
|
370
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
|
371
|
+
<span class="ruby-ivar">@escape</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'escape'</span>
|
372
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-node">"#{@escape}(#{code.strip})"</span>
|
373
|
+
<span class="ruby-keyword kw">end</span>
|
374
|
+
</pre>
|
375
|
+
</div>
|
376
|
+
</div>
|
377
|
+
</div>
|
378
|
+
|
354
379
|
|
355
380
|
</div>
|
356
381
|
|