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
@@ -95,7 +95,7 @@ code
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
98
|
+
<a href="#M000213">add_expr_debug</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -124,19 +124,19 @@ code
|
|
124
124
|
<div id="methods">
|
125
125
|
<h3 class="section-bar">Public Instance methods</h3>
|
126
126
|
|
127
|
-
<div id="method-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000213" class="method-detail">
|
128
|
+
<a name="M000213"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="#
|
131
|
+
<a href="#M000213" class="method-signature">
|
132
132
|
<span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
|
133
133
|
</a>
|
134
134
|
</div>
|
135
135
|
|
136
136
|
<div class="method-description">
|
137
137
|
<p><a class="source-toggle" href="#"
|
138
|
-
onclick="toggleCode('
|
139
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000213-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 121</span>
|
142
142
|
<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>)
|
@@ -92,7 +92,7 @@ this is language-independent.
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
95
|
+
<a href="#M000181">add_text</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -114,19 +114,19 @@ this is language-independent.
|
|
114
114
|
<div id="methods">
|
115
115
|
<h3 class="section-bar">Public Instance methods</h3>
|
116
116
|
|
117
|
-
<div id="method-
|
118
|
-
<a name="
|
117
|
+
<div id="method-M000181" class="method-detail">
|
118
|
+
<a name="M000181"></a>
|
119
119
|
|
120
120
|
<div class="method-heading">
|
121
|
-
<a href="#
|
121
|
+
<a href="#M000181" class="method-signature">
|
122
122
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
|
123
123
|
</a>
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div class="method-description">
|
127
127
|
<p><a class="source-toggle" href="#"
|
128
|
-
onclick="toggleCode('
|
129
|
-
<div class="method-source-code" id="
|
128
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
129
|
+
<div class="method-source-code" id="M000181-source">
|
130
130
|
<pre>
|
131
131
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 446</span>
|
132
132
|
<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>)
|
@@ -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="#M000144">add_expr_debug</a>
|
84
|
+
<a href="#M000143">add_expr_escaped</a>
|
85
|
+
<a href="#M000142">add_expr_literal</a>
|
86
|
+
<a href="#M000146">add_postamble</a>
|
87
|
+
<a href="#M000139">add_preamble</a>
|
88
|
+
<a href="#M000145">add_stmt</a>
|
89
|
+
<a href="#M000141">add_text</a>
|
90
|
+
<a href="#M000140">escape_text</a>
|
91
|
+
<a href="#M000138">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-M000144" class="method-detail">
|
121
|
+
<a name="M000144"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000144" 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('M000144-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000144-source">
|
133
133
|
<pre>
|
134
134
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 47</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-M000143" class="method-detail">
|
146
|
+
<a name="M000143"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
149
|
+
<a href="#M000143" 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('M000143-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000143-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 43</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-M000142" class="method-detail">
|
169
|
+
<a name="M000142"></a>
|
170
170
|
|
171
171
|
<div class="method-heading">
|
172
|
-
<a href="#
|
172
|
+
<a href="#M000142" 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('M000142-source');return false;">[Source]</a></p>
|
180
|
+
<div class="method-source-code" id="M000142-source">
|
181
181
|
<pre>
|
182
182
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 38</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>)
|
@@ -189,19 +189,19 @@
|
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
|
192
|
-
<div id="method-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000146" class="method-detail">
|
193
|
+
<a name="M000146"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000146" class="method-signature">
|
197
197
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
198
198
|
</a>
|
199
199
|
</div>
|
200
200
|
|
201
201
|
<div class="method-description">
|
202
202
|
<p><a class="source-toggle" href="#"
|
203
|
-
onclick="toggleCode('
|
204
|
-
<div class="method-source-code" id="
|
203
|
+
onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000146-source">
|
205
205
|
<pre>
|
206
206
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 64</span>
|
207
207
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -212,19 +212,19 @@
|
|
212
212
|
</div>
|
213
213
|
</div>
|
214
214
|
|
215
|
-
<div id="method-
|
216
|
-
<a name="
|
215
|
+
<div id="method-M000139" class="method-detail">
|
216
|
+
<a name="M000139"></a>
|
217
217
|
|
218
218
|
<div class="method-heading">
|
219
|
-
<a href="#
|
219
|
+
<a href="#M000139" class="method-signature">
|
220
220
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
221
221
|
</a>
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div class="method-description">
|
225
225
|
<p><a class="source-toggle" href="#"
|
226
|
-
onclick="toggleCode('
|
227
|
-
<div class="method-source-code" id="
|
226
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
227
|
+
<div class="method-source-code" id="M000139-source">
|
228
228
|
<pre>
|
229
229
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 26</span>
|
230
230
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -235,19 +235,19 @@
|
|
235
235
|
</div>
|
236
236
|
</div>
|
237
237
|
|
238
|
-
<div id="method-
|
239
|
-
<a name="
|
238
|
+
<div id="method-M000145" class="method-detail">
|
239
|
+
<a name="M000145"></a>
|
240
240
|
|
241
241
|
<div class="method-heading">
|
242
|
-
<a href="#
|
242
|
+
<a href="#M000145" class="method-signature">
|
243
243
|
<span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
|
244
244
|
</a>
|
245
245
|
</div>
|
246
246
|
|
247
247
|
<div class="method-description">
|
248
248
|
<p><a class="source-toggle" href="#"
|
249
|
-
onclick="toggleCode('
|
250
|
-
<div class="method-source-code" id="
|
249
|
+
onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
|
250
|
+
<div class="method-source-code" id="M000145-source">
|
251
251
|
<pre>
|
252
252
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 53</span>
|
253
253
|
<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>)
|
@@ -265,19 +265,19 @@
|
|
265
265
|
</div>
|
266
266
|
</div>
|
267
267
|
|
268
|
-
<div id="method-
|
269
|
-
<a name="
|
268
|
+
<div id="method-M000141" class="method-detail">
|
269
|
+
<a name="M000141"></a>
|
270
270
|
|
271
271
|
<div class="method-heading">
|
272
|
-
<a href="#
|
272
|
+
<a href="#M000141" class="method-signature">
|
273
273
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</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('M000141-source');return false;">[Source]</a></p>
|
280
|
+
<div class="method-source-code" id="M000141-source">
|
281
281
|
<pre>
|
282
282
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 34</span>
|
283
283
|
<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>)
|
@@ -288,19 +288,19 @@
|
|
288
288
|
</div>
|
289
289
|
</div>
|
290
290
|
|
291
|
-
<div id="method-
|
292
|
-
<a name="
|
291
|
+
<div id="method-M000140" class="method-detail">
|
292
|
+
<a name="M000140"></a>
|
293
293
|
|
294
294
|
<div class="method-heading">
|
295
|
-
<a href="#
|
295
|
+
<a href="#M000140" class="method-signature">
|
296
296
|
<span class="method-name">escape_text</span><span class="method-args">(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('M000140-source');return false;">[Source]</a></p>
|
303
|
+
<div class="method-source-code" id="M000140-source">
|
304
304
|
<pre>
|
305
305
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 30</span>
|
306
306
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
|
@@ -311,19 +311,19 @@
|
|
311
311
|
</div>
|
312
312
|
</div>
|
313
313
|
|
314
|
-
<div id="method-
|
315
|
-
<a name="
|
314
|
+
<div id="method-M000138" class="method-detail">
|
315
|
+
<a name="M000138"></a>
|
316
316
|
|
317
317
|
<div class="method-heading">
|
318
|
-
<a href="#
|
318
|
+
<a href="#M000138" class="method-signature">
|
319
319
|
<span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
|
320
320
|
</a>
|
321
321
|
</div>
|
322
322
|
|
323
323
|
<div class="method-description">
|
324
324
|
<p><a class="source-toggle" href="#"
|
325
|
-
onclick="toggleCode('
|
326
|
-
<div class="method-source-code" id="
|
325
|
+
onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
|
326
|
+
<div class="method-source-code" id="M000138-source">
|
327
327
|
<pre>
|
328
328
|
<span class="ruby-comment cmt"># File erubis/engine/ephp.rb, line 21</span>
|
329
329
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -74,11 +74,11 @@
|
|
74
74
|
|
75
75
|
<div id="description">
|
76
76
|
<p>
|
77
|
-
enable <a href="PrintEnabledEnhancer.html#
|
77
|
+
enable <a href="PrintEnabledEnhancer.html#M000160">print</a> function
|
78
78
|
</p>
|
79
79
|
<p>
|
80
80
|
Notice: use Eruby#evaluate() and don‘t use Eruby#result() to be
|
81
|
-
enable <a href="PrintEnabledEnhancer.html#
|
81
|
+
enable <a href="PrintEnabledEnhancer.html#M000160">print</a> function.
|
82
82
|
</p>
|
83
83
|
<p>
|
84
84
|
this is only for <a href="Eruby.html">Eruby</a>.
|
@@ -93,9 +93,9 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
96
|
+
<a href="#M000159">add_preamble</a>
|
97
|
+
<a href="#M000161">evaluate</a>
|
98
|
+
<a href="#M000160">print</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -117,19 +117,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
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-M000159" class="method-detail">
|
121
|
+
<a name="M000159"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000159" class="method-signature">
|
125
125
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</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('M000159-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000159-source">
|
133
133
|
<pre>
|
134
134
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 128</span>
|
135
135
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -141,19 +141,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
141
141
|
</div>
|
142
142
|
</div>
|
143
143
|
|
144
|
-
<div id="method-
|
145
|
-
<a name="
|
144
|
+
<div id="method-M000161" class="method-detail">
|
145
|
+
<a name="M000161"></a>
|
146
146
|
|
147
147
|
<div class="method-heading">
|
148
|
-
<a href="#
|
148
|
+
<a href="#M000161" class="method-signature">
|
149
149
|
<span class="method-name">evaluate</span><span class="method-args">(context=nil)</span>
|
150
150
|
</a>
|
151
151
|
</div>
|
152
152
|
|
153
153
|
<div class="method-description">
|
154
154
|
<p><a class="source-toggle" href="#"
|
155
|
-
onclick="toggleCode('
|
156
|
-
<div class="method-source-code" id="
|
155
|
+
onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
|
156
|
+
<div class="method-source-code" id="M000161-source">
|
157
157
|
<pre>
|
158
158
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 139</span>
|
159
159
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">evaluate</span>(<span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -172,19 +172,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
172
172
|
</div>
|
173
173
|
</div>
|
174
174
|
|
175
|
-
<div id="method-
|
176
|
-
<a name="
|
175
|
+
<div id="method-M000160" class="method-detail">
|
176
|
+
<a name="M000160"></a>
|
177
177
|
|
178
178
|
<div class="method-heading">
|
179
|
-
<a href="#
|
179
|
+
<a href="#M000160" class="method-signature">
|
180
180
|
<span class="method-name">print</span><span class="method-args">(*args)</span>
|
181
181
|
</a>
|
182
182
|
</div>
|
183
183
|
|
184
184
|
<div class="method-description">
|
185
185
|
<p><a class="source-toggle" href="#"
|
186
|
-
onclick="toggleCode('
|
187
|
-
<div class="method-source-code" id="
|
186
|
+
onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
|
187
|
+
<div class="method-source-code" id="M000160-source">
|
188
188
|
<pre>
|
189
189
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 133</span>
|
190
190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
@@ -89,11 +89,11 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
89
89
|
<h3 class="section-bar">Methods</h3>
|
90
90
|
|
91
91
|
<div class="name-list">
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
92
|
+
<a href="#M000123">add_expr_escaped</a>
|
93
|
+
<a href="#M000122">add_expr_literal</a>
|
94
|
+
<a href="#M000124">add_postamble</a>
|
95
|
+
<a href="#M000120">add_preamble</a>
|
96
|
+
<a href="#M000121">add_text</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -115,19 +115,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Instance methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000123" class="method-detail">
|
119
|
+
<a name="M000123"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
122
|
+
<a href="#M000123" class="method-signature">
|
123
123
|
<span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
|
124
124
|
</a>
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div class="method-description">
|
128
128
|
<p><a class="source-toggle" href="#"
|
129
|
-
onclick="toggleCode('
|
130
|
-
<div class="method-source-code" id="
|
129
|
+
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000123-source">
|
131
131
|
<pre>
|
132
132
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 103</span>
|
133
133
|
<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>)
|
@@ -138,19 +138,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
138
138
|
</div>
|
139
139
|
</div>
|
140
140
|
|
141
|
-
<div id="method-
|
142
|
-
<a name="
|
141
|
+
<div id="method-M000122" class="method-detail">
|
142
|
+
<a name="M000122"></a>
|
143
143
|
|
144
144
|
<div class="method-heading">
|
145
|
-
<a href="#
|
145
|
+
<a href="#M000122" class="method-signature">
|
146
146
|
<span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
|
147
147
|
</a>
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div class="method-description">
|
151
151
|
<p><a class="source-toggle" href="#"
|
152
|
-
onclick="toggleCode('
|
153
|
-
<div class="method-source-code" id="
|
152
|
+
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
153
|
+
<div class="method-source-code" id="M000122-source">
|
154
154
|
<pre>
|
155
155
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 99</span>
|
156
156
|
<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>)
|
@@ -161,19 +161,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
161
161
|
</div>
|
162
162
|
</div>
|
163
163
|
|
164
|
-
<div id="method-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000124" class="method-detail">
|
165
|
+
<a name="M000124"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
168
|
+
<a href="#M000124" class="method-signature">
|
169
169
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
170
170
|
</a>
|
171
171
|
</div>
|
172
172
|
|
173
173
|
<div class="method-description">
|
174
174
|
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('
|
176
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000124-source">
|
177
177
|
<pre>
|
178
178
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 107</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -184,19 +184,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
184
184
|
</div>
|
185
185
|
</div>
|
186
186
|
|
187
|
-
<div id="method-
|
188
|
-
<a name="
|
187
|
+
<div id="method-M000120" class="method-detail">
|
188
|
+
<a name="M000120"></a>
|
189
189
|
|
190
190
|
<div class="method-heading">
|
191
|
-
<a href="#
|
191
|
+
<a href="#M000120" class="method-signature">
|
192
192
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
193
193
|
</a>
|
194
194
|
</div>
|
195
195
|
|
196
196
|
<div class="method-description">
|
197
197
|
<p><a class="source-toggle" href="#"
|
198
|
-
onclick="toggleCode('
|
199
|
-
<div class="method-source-code" id="
|
198
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
199
|
+
<div class="method-source-code" id="M000120-source">
|
200
200
|
<pre>
|
201
201
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 92</span>
|
202
202
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -206,19 +206,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
206
206
|
</div>
|
207
207
|
</div>
|
208
208
|
|
209
|
-
<div id="method-
|
210
|
-
<a name="
|
209
|
+
<div id="method-M000121" class="method-detail">
|
210
|
+
<a name="M000121"></a>
|
211
211
|
|
212
212
|
<div class="method-heading">
|
213
|
-
<a href="#
|
213
|
+
<a href="#M000121" class="method-signature">
|
214
214
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
|
215
215
|
</a>
|
216
216
|
</div>
|
217
217
|
|
218
218
|
<div class="method-description">
|
219
219
|
<p><a class="source-toggle" href="#"
|
220
|
-
onclick="toggleCode('
|
221
|
-
<div class="method-source-code" id="
|
220
|
+
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
221
|
+
<div class="method-source-code" id="M000121-source">
|
222
222
|
<pre>
|
223
223
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 95</span>
|
224
224
|
<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>)
|