erubis 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +62 -2
- data/README.txt +1 -1
- data/benchmark/bench.rb +18 -10
- data/bin/erubis +1 -1
- data/contrib/erubis +2 -3318
- data/contrib/inline-require +1 -1
- data/doc-api/classes/ActionView.html +105 -0
- data/doc-api/classes/ActionView/TemplateHandlers/Erubis.html +202 -0
- data/doc-api/classes/Erubis.html +7 -1
- data/doc-api/classes/Erubis/ArrayBufferEnhancer.html +12 -12
- data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Basic/Converter.html +34 -30
- 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/Converter.html +27 -27
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Engine.html +40 -37
- data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Evaluator.html +19 -19
- data/doc-api/classes/Erubis/Generator.html +60 -60
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +201 -176
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +58 -58
- data/doc-api/classes/Erubis/Helpers/RailsHelper/{PreprocessingEruby.html → TemplateConverter.html} +24 -37
- data/doc-api/classes/Erubis/InterpolationEnhancer.html +36 -35
- 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/NoCodeEnhancer.html +30 -30
- 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/PI/Converter.html +21 -21
- data/doc-api/classes/Erubis/PI/Ec.html +6 -6
- data/doc-api/classes/Erubis/PI/Ejava.html +6 -6
- data/doc-api/classes/Erubis/PI/Ejavascript.html +6 -6
- data/doc-api/classes/Erubis/PI/Eperl.html +6 -6
- data/doc-api/classes/Erubis/PI/Ephp.html +6 -6
- data/doc-api/classes/Erubis/PI/Eruby.html +6 -6
- data/doc-api/classes/Erubis/PI/Escheme.html +6 -6
- data/doc-api/classes/Erubis/PI/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
- data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
- data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
- data/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
- data/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
- 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/RubyGenerator.html +48 -48
- data/doc-api/classes/Erubis/SchemeGenerator.html +60 -60
- data/doc-api/classes/Erubis/SimplifyEnhancer.html +7 -7
- data/doc-api/classes/Erubis/StdoutEnhancer.html +12 -12
- 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 +2 -2
- data/doc-api/files/erubis/context_rb.html +1 -1
- data/doc-api/files/erubis/converter_rb.html +2 -2
- 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 +2 -2
- data/doc-api/files/erubis/enhancer_rb.html +2 -2
- 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 +2 -2
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +3 -3
- 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/preprocessing_rb.html +114 -0
- data/doc-api/files/erubis/tiny_rb.html +1 -1
- data/doc-api/files/erubis_rb.html +1 -1
- data/doc-api/fr_class_index.html +5 -1
- data/doc-api/fr_file_index.html +1 -0
- data/doc-api/fr_method_index.html +223 -213
- data/doc/users-guide.html +75 -6
- data/lib/erubis.rb +2 -2
- data/lib/erubis/context.rb +1 -1
- data/lib/erubis/converter.rb +11 -7
- data/lib/erubis/engine.rb +9 -6
- data/lib/erubis/engine/ec.rb +1 -1
- data/lib/erubis/engine/ejava.rb +1 -1
- data/lib/erubis/engine/ejavascript.rb +1 -1
- data/lib/erubis/engine/enhanced.rb +1 -1
- data/lib/erubis/engine/eperl.rb +1 -1
- data/lib/erubis/engine/ephp.rb +1 -1
- 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 +4 -3
- data/lib/erubis/error.rb +1 -1
- data/lib/erubis/evaluator.rb +1 -1
- data/lib/erubis/generator.rb +1 -1
- data/lib/erubis/helper.rb +1 -1
- data/lib/erubis/helpers/rails_form_helper.rb +18 -10
- data/lib/erubis/helpers/rails_helper.rb +100 -98
- data/lib/erubis/local-setting.rb +1 -1
- data/lib/erubis/main.rb +1 -1
- data/lib/erubis/preprocessing.rb +59 -0
- data/lib/erubis/tiny.rb +1 -1
- data/test/assert-text-equal.rb +1 -1
- data/test/data/users-guide/stderr.log +3 -0
- data/test/data/users-guide/tail_260.result +4 -0
- data/test/data/users-guide/tailnewline.rhtml +3 -0
- data/test/test-engines.rb +1 -1
- data/test/test-enhancers.rb +1 -1
- data/test/test-erubis.rb +44 -2
- data/test/test-main.rb +2 -2
- data/test/test-users-guide.rb +1 -1
- data/test/test.rb +1 -1
- data/test/testutil.rb +1 -1
- metadata +15 -5
- data/contrib/action_view_base_rb.patch +0 -23
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
|
-
<a href="Main.html#
|
83
|
+
<a href="Main.html#M000213">main</a> class of command
|
84
84
|
</p>
|
85
85
|
<p>
|
86
86
|
ex.
|
@@ -98,9 +98,9 @@ ex.
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
101
|
+
<a href="#M000215">execute</a>
|
102
|
+
<a href="#M000213">main</a>
|
103
|
+
<a href="#M000214">new</a>
|
104
104
|
</div>
|
105
105
|
</div>
|
106
106
|
|
@@ -122,19 +122,19 @@ ex.
|
|
122
122
|
<div id="methods">
|
123
123
|
<h3 class="section-bar">Public Class methods</h3>
|
124
124
|
|
125
|
-
<div id="method-
|
126
|
-
<a name="
|
125
|
+
<div id="method-M000213" class="method-detail">
|
126
|
+
<a name="M000213"></a>
|
127
127
|
|
128
128
|
<div class="method-heading">
|
129
|
-
<a href="#
|
129
|
+
<a href="#M000213" class="method-signature">
|
130
130
|
<span class="method-name">main</span><span class="method-args">(argv=ARGV)</span>
|
131
131
|
</a>
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div class="method-description">
|
135
135
|
<p><a class="source-toggle" href="#"
|
136
|
-
onclick="toggleCode('
|
137
|
-
<div class="method-source-code" id="
|
136
|
+
onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
|
137
|
+
<div class="method-source-code" id="M000213-source">
|
138
138
|
<pre>
|
139
139
|
<span class="ruby-comment cmt"># File erubis/main.rb, line 40</span>
|
140
140
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">main</span>(<span class="ruby-identifier">argv</span>=<span class="ruby-constant">ARGV</span>)
|
@@ -152,19 +152,19 @@ ex.
|
|
152
152
|
</div>
|
153
153
|
</div>
|
154
154
|
|
155
|
-
<div id="method-
|
156
|
-
<a name="
|
155
|
+
<div id="method-M000214" class="method-detail">
|
156
|
+
<a name="M000214"></a>
|
157
157
|
|
158
158
|
<div class="method-heading">
|
159
|
-
<a href="#
|
159
|
+
<a href="#M000214" class="method-signature">
|
160
160
|
<span class="method-name">new</span><span class="method-args">()</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('M000214-source');return false;">[Source]</a></p>
|
167
|
+
<div class="method-source-code" id="M000214-source">
|
168
168
|
<pre>
|
169
169
|
<span class="ruby-comment cmt"># File erubis/main.rb, line 51</span>
|
170
170
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -208,19 +208,19 @@ ex.
|
|
208
208
|
|
209
209
|
<h3 class="section-bar">Public Instance methods</h3>
|
210
210
|
|
211
|
-
<div id="method-
|
212
|
-
<a name="
|
211
|
+
<div id="method-M000215" class="method-detail">
|
212
|
+
<a name="M000215"></a>
|
213
213
|
|
214
214
|
<div class="method-heading">
|
215
|
-
<a href="#
|
215
|
+
<a href="#M000215" class="method-signature">
|
216
216
|
<span class="method-name">execute</span><span class="method-args">(argv=ARGV)</span>
|
217
217
|
</a>
|
218
218
|
</div>
|
219
219
|
|
220
220
|
<div class="method-description">
|
221
221
|
<p><a class="source-toggle" href="#"
|
222
|
-
onclick="toggleCode('
|
223
|
-
<div class="method-source-code" id="
|
222
|
+
onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
|
223
|
+
<div class="method-source-code" id="M000215-source">
|
224
224
|
<pre>
|
225
225
|
<span class="ruby-comment cmt"># File erubis/main.rb, line 87</span>
|
226
226
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">execute</span>(<span class="ruby-identifier">argv</span>=<span class="ruby-constant">ARGV</span>)
|
@@ -95,11 +95,11 @@ this is language independent.
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
98
|
+
<a href="#M000007">add_expr</a>
|
99
|
+
<a href="#M000005">add_postamble</a>
|
100
|
+
<a href="#M000004">add_preamble</a>
|
101
|
+
<a href="#M000008">add_stmt</a>
|
102
|
+
<a href="#M000006">add_text</a>
|
103
103
|
</div>
|
104
104
|
</div>
|
105
105
|
|
@@ -121,19 +121,19 @@ this is language independent.
|
|
121
121
|
<div id="methods">
|
122
122
|
<h3 class="section-bar">Public Instance methods</h3>
|
123
123
|
|
124
|
-
<div id="method-
|
125
|
-
<a name="
|
124
|
+
<div id="method-M000007" class="method-detail">
|
125
|
+
<a name="M000007"></a>
|
126
126
|
|
127
127
|
<div class="method-heading">
|
128
|
-
<a href="#
|
128
|
+
<a href="#M000007" class="method-signature">
|
129
129
|
<span class="method-name">add_expr</span><span class="method-args">(src, code, indicator)</span>
|
130
130
|
</a>
|
131
131
|
</div>
|
132
132
|
|
133
133
|
<div class="method-description">
|
134
134
|
<p><a class="source-toggle" href="#"
|
135
|
-
onclick="toggleCode('
|
136
|
-
<div class="method-source-code" id="
|
135
|
+
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
136
|
+
<div class="method-source-code" id="M000007-source">
|
137
137
|
<pre>
|
138
138
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 318</span>
|
139
139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>, <span class="ruby-identifier">indicator</span>)
|
@@ -144,19 +144,19 @@ this is language independent.
|
|
144
144
|
</div>
|
145
145
|
</div>
|
146
146
|
|
147
|
-
<div id="method-
|
148
|
-
<a name="
|
147
|
+
<div id="method-M000005" class="method-detail">
|
148
|
+
<a name="M000005"></a>
|
149
149
|
|
150
150
|
<div class="method-heading">
|
151
|
-
<a href="#
|
151
|
+
<a href="#M000005" class="method-signature">
|
152
152
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
153
153
|
</a>
|
154
154
|
</div>
|
155
155
|
|
156
156
|
<div class="method-description">
|
157
157
|
<p><a class="source-toggle" href="#"
|
158
|
-
onclick="toggleCode('
|
159
|
-
<div class="method-source-code" id="
|
158
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
159
|
+
<div class="method-source-code" id="M000005-source">
|
160
160
|
<pre>
|
161
161
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 311</span>
|
162
162
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -166,19 +166,19 @@ this is language independent.
|
|
166
166
|
</div>
|
167
167
|
</div>
|
168
168
|
|
169
|
-
<div id="method-
|
170
|
-
<a name="
|
169
|
+
<div id="method-M000004" class="method-detail">
|
170
|
+
<a name="M000004"></a>
|
171
171
|
|
172
172
|
<div class="method-heading">
|
173
|
-
<a href="#
|
173
|
+
<a href="#M000004" class="method-signature">
|
174
174
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</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('M000004-source');return false;">[Source]</a></p>
|
181
|
+
<div class="method-source-code" id="M000004-source">
|
182
182
|
<pre>
|
183
183
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 308</span>
|
184
184
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -188,19 +188,19 @@ this is language independent.
|
|
188
188
|
</div>
|
189
189
|
</div>
|
190
190
|
|
191
|
-
<div id="method-
|
192
|
-
<a name="
|
191
|
+
<div id="method-M000008" class="method-detail">
|
192
|
+
<a name="M000008"></a>
|
193
193
|
|
194
194
|
<div class="method-heading">
|
195
|
-
<a href="#
|
195
|
+
<a href="#M000008" class="method-signature">
|
196
196
|
<span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
|
197
197
|
</a>
|
198
198
|
</div>
|
199
199
|
|
200
200
|
<div class="method-description">
|
201
201
|
<p><a class="source-toggle" href="#"
|
202
|
-
onclick="toggleCode('
|
203
|
-
<div class="method-source-code" id="
|
202
|
+
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
203
|
+
<div class="method-source-code" id="M000008-source">
|
204
204
|
<pre>
|
205
205
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 322</span>
|
206
206
|
<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>)
|
@@ -211,19 +211,19 @@ this is language independent.
|
|
211
211
|
</div>
|
212
212
|
</div>
|
213
213
|
|
214
|
-
<div id="method-
|
215
|
-
<a name="
|
214
|
+
<div id="method-M000006" class="method-detail">
|
215
|
+
<a name="M000006"></a>
|
216
216
|
|
217
217
|
<div class="method-heading">
|
218
|
-
<a href="#
|
218
|
+
<a href="#M000006" class="method-signature">
|
219
219
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
|
220
220
|
</a>
|
221
221
|
</div>
|
222
222
|
|
223
223
|
<div class="method-description">
|
224
224
|
<p><a class="source-toggle" href="#"
|
225
|
-
onclick="toggleCode('
|
226
|
-
<div class="method-source-code" id="
|
225
|
+
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
226
|
+
<div class="method-source-code" id="M000006-source">
|
227
227
|
<pre>
|
228
228
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 314</span>
|
229
229
|
<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>)
|
@@ -95,7 +95,7 @@ this is language independent.
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
98
|
+
<a href="#M000190">add_text</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -117,19 +117,19 @@ this is language independent.
|
|
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-M000190" class="method-detail">
|
121
|
+
<a name="M000190"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000190" class="method-signature">
|
125
125
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</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('M000190-source');return false;">[Source]</a></p>
|
132
|
+
<div class="method-source-code" id="M000190-source">
|
133
133
|
<pre>
|
134
134
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 283</span>
|
135
135
|
<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>)
|
@@ -94,7 +94,7 @@
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
97
|
+
<a href="#M000212">init_converter</a>
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
|
@@ -124,19 +124,19 @@
|
|
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-M000212" class="method-detail">
|
128
|
+
<a name="M000212"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="#
|
131
|
+
<a href="#M000212" class="method-signature">
|
132
132
|
<span class="method-name">init_converter</span><span class="method-args">(properties={})</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('M000212-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000212-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 107</span>
|
142
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_converter</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -80,18 +80,18 @@
|
|
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="#
|
93
|
-
<a href="#
|
94
|
-
<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="#M000145">add_postamble</a>
|
87
|
+
<a href="#M000139">add_preamble</a>
|
88
|
+
<a href="#M000141">add_stmt</a>
|
89
|
+
<a href="#M000140">add_text</a>
|
90
|
+
<a href="#M000135">escape_text</a>
|
91
|
+
<a href="#M000136">escaped_expr</a>
|
92
|
+
<a href="#M000134">init_generator</a>
|
93
|
+
<a href="#M000137">switch_to_expr</a>
|
94
|
+
<a href="#M000138">switch_to_stmt</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -120,19 +120,19 @@
|
|
120
120
|
<div id="methods">
|
121
121
|
<h3 class="section-bar">Public Instance methods</h3>
|
122
122
|
|
123
|
-
<div id="method-
|
124
|
-
<a name="
|
123
|
+
<div id="method-M000134" class="method-detail">
|
124
|
+
<a name="M000134"></a>
|
125
125
|
|
126
126
|
<div class="method-heading">
|
127
|
-
<a href="#
|
127
|
+
<a href="#M000134" class="method-signature">
|
128
128
|
<span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
|
129
129
|
</a>
|
130
130
|
</div>
|
131
131
|
|
132
132
|
<div class="method-description">
|
133
133
|
<p><a class="source-toggle" href="#"
|
134
|
-
onclick="toggleCode('
|
135
|
-
<div class="method-source-code" id="
|
134
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
135
|
+
<div class="method-source-code" id="M000134-source">
|
136
136
|
<pre>
|
137
137
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 21</span>
|
138
138
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
|
@@ -148,19 +148,19 @@
|
|
148
148
|
|
149
149
|
<h3 class="section-bar">Protected Instance methods</h3>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000144" class="method-detail">
|
152
|
+
<a name="M000144"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000144" class="method-signature">
|
156
156
|
<span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
159
159
|
|
160
160
|
<div class="method-description">
|
161
161
|
<p><a class="source-toggle" href="#"
|
162
|
-
onclick="toggleCode('
|
163
|
-
<div class="method-source-code" id="
|
162
|
+
onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000144-source">
|
164
164
|
<pre>
|
165
165
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 86</span>
|
166
166
|
<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>)
|
@@ -173,19 +173,19 @@
|
|
173
173
|
</div>
|
174
174
|
</div>
|
175
175
|
|
176
|
-
<div id="method-
|
177
|
-
<a name="
|
176
|
+
<div id="method-M000143" class="method-detail">
|
177
|
+
<a name="M000143"></a>
|
178
178
|
|
179
179
|
<div class="method-heading">
|
180
|
-
<a href="#
|
180
|
+
<a href="#M000143" class="method-signature">
|
181
181
|
<span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
|
182
182
|
</a>
|
183
183
|
</div>
|
184
184
|
|
185
185
|
<div class="method-description">
|
186
186
|
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('
|
188
|
-
<div class="method-source-code" id="
|
187
|
+
onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
|
188
|
+
<div class="method-source-code" id="M000143-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 80</span>
|
191
191
|
<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>)
|
@@ -198,19 +198,19 @@
|
|
198
198
|
</div>
|
199
199
|
</div>
|
200
200
|
|
201
|
-
<div id="method-
|
202
|
-
<a name="
|
201
|
+
<div id="method-M000142" class="method-detail">
|
202
|
+
<a name="M000142"></a>
|
203
203
|
|
204
204
|
<div class="method-heading">
|
205
|
-
<a href="#
|
205
|
+
<a href="#M000142" class="method-signature">
|
206
206
|
<span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
|
207
207
|
</a>
|
208
208
|
</div>
|
209
209
|
|
210
210
|
<div class="method-description">
|
211
211
|
<p><a class="source-toggle" href="#"
|
212
|
-
onclick="toggleCode('
|
213
|
-
<div class="method-source-code" id="
|
212
|
+
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
213
|
+
<div class="method-source-code" id="M000142-source">
|
214
214
|
<pre>
|
215
215
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 74</span>
|
216
216
|
<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>)
|
@@ -223,19 +223,19 @@
|
|
223
223
|
</div>
|
224
224
|
</div>
|
225
225
|
|
226
|
-
<div id="method-
|
227
|
-
<a name="
|
226
|
+
<div id="method-M000145" class="method-detail">
|
227
|
+
<a name="M000145"></a>
|
228
228
|
|
229
229
|
<div class="method-heading">
|
230
|
-
<a href="#
|
230
|
+
<a href="#M000145" class="method-signature">
|
231
231
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
232
232
|
</a>
|
233
233
|
</div>
|
234
234
|
|
235
235
|
<div class="method-description">
|
236
236
|
<p><a class="source-toggle" href="#"
|
237
|
-
onclick="toggleCode('
|
238
|
-
<div class="method-source-code" id="
|
237
|
+
onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
|
238
|
+
<div class="method-source-code" id="M000145-source">
|
239
239
|
<pre>
|
240
240
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 92</span>
|
241
241
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -247,19 +247,19 @@
|
|
247
247
|
</div>
|
248
248
|
</div>
|
249
249
|
|
250
|
-
<div id="method-
|
251
|
-
<a name="
|
250
|
+
<div id="method-M000139" class="method-detail">
|
251
|
+
<a name="M000139"></a>
|
252
252
|
|
253
253
|
<div class="method-heading">
|
254
|
-
<a href="#
|
254
|
+
<a href="#M000139" class="method-signature">
|
255
255
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
256
256
|
</a>
|
257
257
|
</div>
|
258
258
|
|
259
259
|
<div class="method-description">
|
260
260
|
<p><a class="source-toggle" href="#"
|
261
|
-
onclick="toggleCode('
|
262
|
-
<div class="method-source-code" id="
|
261
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
262
|
+
<div class="method-source-code" id="M000139-source">
|
263
263
|
<pre>
|
264
264
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 51</span>
|
265
265
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -271,19 +271,19 @@
|
|
271
271
|
</div>
|
272
272
|
</div>
|
273
273
|
|
274
|
-
<div id="method-
|
275
|
-
<a name="
|
274
|
+
<div id="method-M000141" class="method-detail">
|
275
|
+
<a name="M000141"></a>
|
276
276
|
|
277
277
|
<div class="method-heading">
|
278
|
-
<a href="#
|
278
|
+
<a href="#M000141" class="method-signature">
|
279
279
|
<span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
|
280
280
|
</a>
|
281
281
|
</div>
|
282
282
|
|
283
283
|
<div class="method-description">
|
284
284
|
<p><a class="source-toggle" href="#"
|
285
|
-
onclick="toggleCode('
|
286
|
-
<div class="method-source-code" id="
|
285
|
+
onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
|
286
|
+
<div class="method-source-code" id="M000141-source">
|
287
287
|
<pre>
|
288
288
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 67</span>
|
289
289
|
<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 +297,19 @@
|
|
297
297
|
</div>
|
298
298
|
</div>
|
299
299
|
|
300
|
-
<div id="method-
|
301
|
-
<a name="
|
300
|
+
<div id="method-M000140" class="method-detail">
|
301
|
+
<a name="M000140"></a>
|
302
302
|
|
303
303
|
<div class="method-heading">
|
304
|
-
<a href="#
|
304
|
+
<a href="#M000140" class="method-signature">
|
305
305
|
<span class="method-name">add_text</span><span class="method-args">(src, text)</span>
|
306
306
|
</a>
|
307
307
|
</div>
|
308
308
|
|
309
309
|
<div class="method-description">
|
310
310
|
<p><a class="source-toggle" href="#"
|
311
|
-
onclick="toggleCode('
|
312
|
-
<div class="method-source-code" id="
|
311
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
312
|
+
<div class="method-source-code" id="M000140-source">
|
313
313
|
<pre>
|
314
314
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 56</span>
|
315
315
|
<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>)
|
@@ -327,19 +327,19 @@
|
|
327
327
|
</div>
|
328
328
|
</div>
|
329
329
|
|
330
|
-
<div id="method-
|
331
|
-
<a name="
|
330
|
+
<div id="method-M000135" class="method-detail">
|
331
|
+
<a name="M000135"></a>
|
332
332
|
|
333
333
|
<div class="method-heading">
|
334
|
-
<a href="#
|
334
|
+
<a href="#M000135" class="method-signature">
|
335
335
|
<span class="method-name">escape_text</span><span class="method-args">(text)</span>
|
336
336
|
</a>
|
337
337
|
</div>
|
338
338
|
|
339
339
|
<div class="method-description">
|
340
340
|
<p><a class="source-toggle" href="#"
|
341
|
-
onclick="toggleCode('
|
342
|
-
<div class="method-source-code" id="
|
341
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
342
|
+
<div class="method-source-code" id="M000135-source">
|
343
343
|
<pre>
|
344
344
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 30</span>
|
345
345
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
|
@@ -350,19 +350,19 @@
|
|
350
350
|
</div>
|
351
351
|
</div>
|
352
352
|
|
353
|
-
<div id="method-
|
354
|
-
<a name="
|
353
|
+
<div id="method-M000136" class="method-detail">
|
354
|
+
<a name="M000136"></a>
|
355
355
|
|
356
356
|
<div class="method-heading">
|
357
|
-
<a href="#
|
357
|
+
<a href="#M000136" class="method-signature">
|
358
358
|
<span class="method-name">escaped_expr</span><span class="method-args">(code)</span>
|
359
359
|
</a>
|
360
360
|
</div>
|
361
361
|
|
362
362
|
<div class="method-description">
|
363
363
|
<p><a class="source-toggle" href="#"
|
364
|
-
onclick="toggleCode('
|
365
|
-
<div class="method-source-code" id="
|
364
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
365
|
+
<div class="method-source-code" id="M000136-source">
|
366
366
|
<pre>
|
367
367
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 34</span>
|
368
368
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escaped_expr</span>(<span class="ruby-identifier">code</span>)
|
@@ -374,19 +374,19 @@
|
|
374
374
|
</div>
|
375
375
|
</div>
|
376
376
|
|
377
|
-
<div id="method-
|
378
|
-
<a name="
|
377
|
+
<div id="method-M000137" class="method-detail">
|
378
|
+
<a name="M000137"></a>
|
379
379
|
|
380
380
|
<div class="method-heading">
|
381
|
-
<a href="#
|
381
|
+
<a href="#M000137" class="method-signature">
|
382
382
|
<span class="method-name">switch_to_expr</span><span class="method-args">(src)</span>
|
383
383
|
</a>
|
384
384
|
</div>
|
385
385
|
|
386
386
|
<div class="method-description">
|
387
387
|
<p><a class="source-toggle" href="#"
|
388
|
-
onclick="toggleCode('
|
389
|
-
<div class="method-source-code" id="
|
388
|
+
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
389
|
+
<div class="method-source-code" id="M000137-source">
|
390
390
|
<pre>
|
391
391
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 39</span>
|
392
392
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">switch_to_expr</span>(<span class="ruby-identifier">src</span>)
|
@@ -399,19 +399,19 @@
|
|
399
399
|
</div>
|
400
400
|
</div>
|
401
401
|
|
402
|
-
<div id="method-
|
403
|
-
<a name="
|
402
|
+
<div id="method-M000138" class="method-detail">
|
403
|
+
<a name="M000138"></a>
|
404
404
|
|
405
405
|
<div class="method-heading">
|
406
|
-
<a href="#
|
406
|
+
<a href="#M000138" class="method-signature">
|
407
407
|
<span class="method-name">switch_to_stmt</span><span class="method-args">(src)</span>
|
408
408
|
</a>
|
409
409
|
</div>
|
410
410
|
|
411
411
|
<div class="method-description">
|
412
412
|
<p><a class="source-toggle" href="#"
|
413
|
-
onclick="toggleCode('
|
414
|
-
<div class="method-source-code" id="
|
413
|
+
onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
|
414
|
+
<div class="method-source-code" id="M000138-source">
|
415
415
|
<pre>
|
416
416
|
<span class="ruby-comment cmt"># File erubis/engine/optimized.rb, line 45</span>
|
417
417
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">switch_to_stmt</span>(<span class="ruby-identifier">src</span>)
|