tenjin 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/CHANGES.txt +46 -0
  2. data/MIT-LICENSE +1 -1
  3. data/README.txt +7 -7
  4. data/bin/rbtenjin +2 -2
  5. data/doc-api/classes/Tenjin.html +2 -2
  6. data/doc-api/classes/Tenjin/ArrayBufferTemplate.html +28 -28
  7. data/doc-api/classes/Tenjin/BaseContext.html +61 -44
  8. data/doc-api/classes/Tenjin/ContextHelper.html +85 -57
  9. data/doc-api/classes/Tenjin/Engine.html +88 -88
  10. data/doc-api/classes/Tenjin/ErubisTemplate.html +7 -7
  11. data/doc-api/classes/Tenjin/Preprocessor.html +28 -28
  12. data/doc-api/classes/Tenjin/Template.html +142 -142
  13. data/doc-api/created.rid +1 -1
  14. data/doc-api/files/README_txt.html +10 -10
  15. data/doc-api/files/lib/tenjin_rb.html +2 -2
  16. data/doc-api/fr_method_index.html +55 -53
  17. data/doc/examples.html +2 -2
  18. data/doc/faq.html +2 -2
  19. data/doc/users-guide.html +47 -4
  20. data/examples/form/Makefile +5 -0
  21. data/examples/form/Rakefile +7 -0
  22. data/examples/form/create.rbhtml +4 -0
  23. data/examples/form/form.rbhtml +14 -0
  24. data/examples/form/layout.rbhtml +8 -0
  25. data/examples/form/main.rb +9 -0
  26. data/examples/form/update.rbhtml +4 -0
  27. data/examples/preprocessing/Makefile +8 -0
  28. data/examples/preprocessing/Rakefile +11 -0
  29. data/examples/preprocessing/helper.rb +16 -0
  30. data/examples/preprocessing/main.rb +11 -0
  31. data/examples/preprocessing/select.rbhtml +15 -0
  32. data/examples/table/Makefile +5 -0
  33. data/examples/table/Rakefile +7 -0
  34. data/examples/table/table.rb +9 -0
  35. data/examples/table/table.rbhtml +16 -0
  36. data/lib/tenjin.rb +28 -18
  37. data/setup.rb +861 -607
  38. data/tenjin.gemspec +16 -12
  39. data/test/assert-text-equal.rb +2 -2
  40. data/test/data/users_guide/example16d.rb +27 -0
  41. data/test/data/users_guide/example16d.result +4 -0
  42. data/test/test_all.rb +2 -2
  43. data/test/test_engine.rb +2 -2
  44. data/test/test_examples.rb +2 -2
  45. data/test/test_faq.rb +2 -2
  46. data/test/test_htmlhelper.rb +2 -2
  47. data/test/test_main.rb +2 -2
  48. data/test/test_template.rb +2 -2
  49. data/test/test_users_guide.rb +2 -2
  50. data/test/testcase-helper.rb +2 -2
  51. metadata +64 -35
@@ -105,7 +105,7 @@ ex.
105
105
  <h3 class="section-bar">Methods</h3>
106
106
 
107
107
  <div class="name-list">
108
- <a href="#M000017">parse_stmts</a>&nbsp;&nbsp;
108
+ <a href="#M000018">parse_stmts</a>&nbsp;&nbsp;
109
109
  </div>
110
110
  </div>
111
111
 
@@ -127,21 +127,21 @@ ex.
127
127
  <div id="methods">
128
128
  <h3 class="section-bar">Protected Instance methods</h3>
129
129
 
130
- <div id="method-M000017" class="method-detail">
131
- <a name="M000017"></a>
130
+ <div id="method-M000018" class="method-detail">
131
+ <a name="M000018"></a>
132
132
 
133
133
  <div class="method-heading">
134
- <a href="#M000017" class="method-signature">
134
+ <a href="#M000018" class="method-signature">
135
135
  <span class="method-name">parse_stmts</span><span class="method-args">(input)</span>
136
136
  </a>
137
137
  </div>
138
138
 
139
139
  <div class="method-description">
140
140
  <p><a class="source-toggle" href="#"
141
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
142
- <div class="method-source-code" id="M000017-source">
141
+ onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
142
+ <div class="method-source-code" id="M000018-source">
143
143
  <pre>
144
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 756</span>
144
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 766</span>
145
145
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_stmts</span>(<span class="ruby-identifier">input</span>)
146
146
  <span class="ruby-identifier">eruby</span> = <span class="ruby-constant">Erubis</span><span class="ruby-operator">::</span><span class="ruby-constant">Eruby</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">:preamble=</span><span class="ruby-operator">&gt;</span><span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:postamble=</span><span class="ruby-operator">&gt;</span><span class="ruby-keyword kw">false</span>)
147
147
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">eruby</span>.<span class="ruby-identifier">src</span>
@@ -94,10 +94,10 @@ preprocessor class
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000044">add_expr</a>&nbsp;&nbsp;
98
- <a href="#M000043">escape_str</a>&nbsp;&nbsp;
99
- <a href="#M000042">expr_pattern</a>&nbsp;&nbsp;
100
- <a href="#M000041">stmt_pattern</a>&nbsp;&nbsp;
97
+ <a href="#M000046">add_expr</a>&nbsp;&nbsp;
98
+ <a href="#M000045">escape_str</a>&nbsp;&nbsp;
99
+ <a href="#M000044">expr_pattern</a>&nbsp;&nbsp;
100
+ <a href="#M000043">stmt_pattern</a>&nbsp;&nbsp;
101
101
  </div>
102
102
  </div>
103
103
 
@@ -132,21 +132,21 @@ preprocessor class
132
132
  <div id="methods">
133
133
  <h3 class="section-bar">Protected Instance methods</h3>
134
134
 
135
- <div id="method-M000044" class="method-detail">
136
- <a name="M000044"></a>
135
+ <div id="method-M000046" class="method-detail">
136
+ <a name="M000046"></a>
137
137
 
138
138
  <div class="method-heading">
139
- <a href="#M000044" class="method-signature">
139
+ <a href="#M000046" class="method-signature">
140
140
  <span class="method-name">add_expr</span><span class="method-args">(code, flag_escape=nil)</span>
141
141
  </a>
142
142
  </div>
143
143
 
144
144
  <div class="method-description">
145
145
  <p><a class="source-toggle" href="#"
146
- onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
147
- <div class="method-source-code" id="M000044-source">
146
+ onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
147
+ <div class="method-source-code" id="M000046-source">
148
148
  <pre>
149
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 650</span>
149
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 660</span>
150
150
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr</span>(<span class="ruby-identifier">code</span>, <span class="ruby-identifier">flag_escape</span>=<span class="ruby-keyword kw">nil</span>)
151
151
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">code</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">empty?</span>
152
152
  <span class="ruby-keyword kw">super</span>(<span class="ruby-node">&quot;_decode_params((#{code}))&quot;</span>, <span class="ruby-identifier">flag_escape</span>)
@@ -156,21 +156,21 @@ preprocessor class
156
156
  </div>
157
157
  </div>
158
158
 
159
- <div id="method-M000043" class="method-detail">
160
- <a name="M000043"></a>
159
+ <div id="method-M000045" class="method-detail">
160
+ <a name="M000045"></a>
161
161
 
162
162
  <div class="method-heading">
163
- <a href="#M000043" class="method-signature">
163
+ <a href="#M000045" class="method-signature">
164
164
  <span class="method-name">escape_str</span><span class="method-args">(str)</span>
165
165
  </a>
166
166
  </div>
167
167
 
168
168
  <div class="method-description">
169
169
  <p><a class="source-toggle" href="#"
170
- onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
171
- <div class="method-source-code" id="M000043-source">
170
+ onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
171
+ <div class="method-source-code" id="M000045-source">
172
172
  <pre>
173
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 644</span>
173
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 654</span>
174
174
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_str</span>(<span class="ruby-identifier">str</span>)
175
175
  <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/[\\`\#]/</span>, <span class="ruby-value str">'\\\\\&amp;'</span>)
176
176
  <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\r\n/</span>, <span class="ruby-value str">&quot;\\r\r\n&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@newline</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;\r\n&quot;</span>
@@ -181,21 +181,21 @@ preprocessor class
181
181
  </div>
182
182
  </div>
183
183
 
184
- <div id="method-M000042" class="method-detail">
185
- <a name="M000042"></a>
184
+ <div id="method-M000044" class="method-detail">
185
+ <a name="M000044"></a>
186
186
 
187
187
  <div class="method-heading">
188
- <a href="#M000042" class="method-signature">
188
+ <a href="#M000044" class="method-signature">
189
189
  <span class="method-name">expr_pattern</span><span class="method-args">()</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('M000042-source');return false;">[Source]</a></p>
196
- <div class="method-source-code" id="M000042-source">
195
+ onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
196
+ <div class="method-source-code" id="M000044-source">
197
197
  <pre>
198
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 634</span>
198
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 644</span>
199
199
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expr_pattern</span>
200
200
  <span class="ruby-keyword kw">return</span> <span class="ruby-regexp re">/([\#$])\{\{(.*?)\}\}/</span><span class="ruby-identifier">m</span>
201
201
  <span class="ruby-keyword kw">end</span>
@@ -204,21 +204,21 @@ preprocessor class
204
204
  </div>
205
205
  </div>
206
206
 
207
- <div id="method-M000041" class="method-detail">
208
- <a name="M000041"></a>
207
+ <div id="method-M000043" class="method-detail">
208
+ <a name="M000043"></a>
209
209
 
210
210
  <div class="method-heading">
211
- <a href="#M000041" class="method-signature">
211
+ <a href="#M000043" class="method-signature">
212
212
  <span class="method-name">stmt_pattern</span><span class="method-args">()</span>
213
213
  </a>
214
214
  </div>
215
215
 
216
216
  <div class="method-description">
217
217
  <p><a class="source-toggle" href="#"
218
- onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
219
- <div class="method-source-code" id="M000041-source">
218
+ onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
219
+ <div class="method-source-code" id="M000043-source">
220
220
  <pre>
221
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 630</span>
221
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 640</span>
222
222
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stmt_pattern</span>
223
223
  <span class="ruby-keyword kw">return</span> <span class="ruby-constant">STMT_PATTERN</span>
224
224
  <span class="ruby-keyword kw">end</span>
@@ -137,25 +137,25 @@ ex. evaluation
137
137
  <h3 class="section-bar">Methods</h3>
138
138
 
139
139
  <div class="name-list">
140
- <a href="#M000061">add_expr</a>&nbsp;&nbsp;
141
- <a href="#M000062">add_stmt</a>&nbsp;&nbsp;
142
- <a href="#M000059">add_text</a>&nbsp;&nbsp;
143
- <a href="#M000049">after_convert</a>&nbsp;&nbsp;
144
- <a href="#M000048">before_convert</a>&nbsp;&nbsp;
145
- <a href="#M000050">compile_stmt_pattern</a>&nbsp;&nbsp;
146
- <a href="#M000047">convert</a>&nbsp;&nbsp;
147
- <a href="#M000046">convert_file</a>&nbsp;&nbsp;
148
- <a href="#M000060">escape_str</a>&nbsp;&nbsp;
149
- <a href="#M000053">expr_pattern</a>&nbsp;&nbsp;
150
- <a href="#M000054">get_expr_and_escapeflag</a>&nbsp;&nbsp;
151
- <a href="#M000045">new</a>&nbsp;&nbsp;
152
- <a href="#M000055">parse_exprs</a>&nbsp;&nbsp;
153
- <a href="#M000052">parse_stmts</a>&nbsp;&nbsp;
154
- <a href="#M000063">render</a>&nbsp;&nbsp;
155
- <a href="#M000057">start_text_part</a>&nbsp;&nbsp;
156
- <a href="#M000056">statement_hook</a>&nbsp;&nbsp;
157
- <a href="#M000051">stmt_pattern</a>&nbsp;&nbsp;
158
- <a href="#M000058">stop_text_part</a>&nbsp;&nbsp;
140
+ <a href="#M000063">add_expr</a>&nbsp;&nbsp;
141
+ <a href="#M000064">add_stmt</a>&nbsp;&nbsp;
142
+ <a href="#M000061">add_text</a>&nbsp;&nbsp;
143
+ <a href="#M000051">after_convert</a>&nbsp;&nbsp;
144
+ <a href="#M000050">before_convert</a>&nbsp;&nbsp;
145
+ <a href="#M000052">compile_stmt_pattern</a>&nbsp;&nbsp;
146
+ <a href="#M000049">convert</a>&nbsp;&nbsp;
147
+ <a href="#M000048">convert_file</a>&nbsp;&nbsp;
148
+ <a href="#M000062">escape_str</a>&nbsp;&nbsp;
149
+ <a href="#M000055">expr_pattern</a>&nbsp;&nbsp;
150
+ <a href="#M000056">get_expr_and_escapeflag</a>&nbsp;&nbsp;
151
+ <a href="#M000047">new</a>&nbsp;&nbsp;
152
+ <a href="#M000057">parse_exprs</a>&nbsp;&nbsp;
153
+ <a href="#M000054">parse_stmts</a>&nbsp;&nbsp;
154
+ <a href="#M000065">render</a>&nbsp;&nbsp;
155
+ <a href="#M000059">start_text_part</a>&nbsp;&nbsp;
156
+ <a href="#M000058">statement_hook</a>&nbsp;&nbsp;
157
+ <a href="#M000053">stmt_pattern</a>&nbsp;&nbsp;
158
+ <a href="#M000060">stop_text_part</a>&nbsp;&nbsp;
159
159
  </div>
160
160
  </div>
161
161
 
@@ -238,11 +238,11 @@ ex. evaluation
238
238
  <div id="methods">
239
239
  <h3 class="section-bar">Public Class methods</h3>
240
240
 
241
- <div id="method-M000045" class="method-detail">
242
- <a name="M000045"></a>
241
+ <div id="method-M000047" class="method-detail">
242
+ <a name="M000047"></a>
243
243
 
244
244
  <div class="method-heading">
245
- <a href="#M000045" class="method-signature">
245
+ <a href="#M000047" class="method-signature">
246
246
  <span class="method-name">new</span><span class="method-args">(filename=nil, options={})</span>
247
247
  </a>
248
248
  </div>
@@ -266,10 +266,10 @@ options:
266
266
  </td></tr>
267
267
  </table>
268
268
  <p><a class="source-toggle" href="#"
269
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
270
- <div class="method-source-code" id="M000045-source">
269
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
270
+ <div class="method-source-code" id="M000047-source">
271
271
  <pre>
272
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 327</span>
272
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 337</span>
273
273
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">options</span>={})
274
274
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
275
275
  <span class="ruby-identifier">options</span> = <span class="ruby-identifier">filename</span>
@@ -289,21 +289,21 @@ options:
289
289
 
290
290
  <h3 class="section-bar">Protected Class methods</h3>
291
291
 
292
- <div id="method-M000050" class="method-detail">
293
- <a name="M000050"></a>
292
+ <div id="method-M000052" class="method-detail">
293
+ <a name="M000052"></a>
294
294
 
295
295
  <div class="method-heading">
296
- <a href="#M000050" class="method-signature">
296
+ <a href="#M000052" class="method-signature">
297
297
  <span class="method-name">compile_stmt_pattern</span><span class="method-args">(pi)</span>
298
298
  </a>
299
299
  </div>
300
300
 
301
301
  <div class="method-description">
302
302
  <p><a class="source-toggle" href="#"
303
- onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
304
- <div class="method-source-code" id="M000050-source">
303
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
304
+ <div class="method-source-code" id="M000052-source">
305
305
  <pre>
306
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 381</span>
306
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 391</span>
307
307
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">compile_stmt_pattern</span>(<span class="ruby-identifier">pi</span>)
308
308
  <span class="ruby-keyword kw">return</span> <span class="ruby-node">/&lt;\?#{pi}( |\t|\r?\n)(.*?) ?\?&gt;([ \t]*\r?\n)?/</span><span class="ruby-identifier">m</span>
309
309
  <span class="ruby-keyword kw">end</span>
@@ -314,24 +314,24 @@ options:
314
314
 
315
315
  <h3 class="section-bar">Public Instance methods</h3>
316
316
 
317
- <div id="method-M000047" class="method-detail">
318
- <a name="M000047"></a>
317
+ <div id="method-M000049" class="method-detail">
318
+ <a name="M000049"></a>
319
319
 
320
320
  <div class="method-heading">
321
- <a href="#M000047" class="method-signature">
321
+ <a href="#M000049" class="method-signature">
322
322
  <span class="method-name">convert</span><span class="method-args">(input, filename=nil)</span>
323
323
  </a>
324
324
  </div>
325
325
 
326
326
  <div class="method-description">
327
327
  <p>
328
- <a href="Template.html#M000047">convert</a> string into ruby code
328
+ <a href="Template.html#M000049">convert</a> string into ruby code
329
329
  </p>
330
330
  <p><a class="source-toggle" href="#"
331
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
332
- <div class="method-source-code" id="M000047-source">
331
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
332
+ <div class="method-source-code" id="M000049-source">
333
333
  <pre>
334
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 349</span>
334
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 359</span>
335
335
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword kw">nil</span>)
336
336
  <span class="ruby-ivar">@input</span> = <span class="ruby-identifier">input</span>
337
337
  <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
@@ -354,24 +354,24 @@ options:
354
354
  </div>
355
355
  </div>
356
356
 
357
- <div id="method-M000046" class="method-detail">
358
- <a name="M000046"></a>
357
+ <div id="method-M000048" class="method-detail">
358
+ <a name="M000048"></a>
359
359
 
360
360
  <div class="method-heading">
361
- <a href="#M000046" class="method-signature">
361
+ <a href="#M000048" class="method-signature">
362
362
  <span class="method-name">convert_file</span><span class="method-args">(filename)</span>
363
363
  </a>
364
364
  </div>
365
365
 
366
366
  <div class="method-description">
367
367
  <p>
368
- <a href="Template.html#M000047">convert</a> file into ruby code
368
+ <a href="Template.html#M000049">convert</a> file into ruby code
369
369
  </p>
370
370
  <p><a class="source-toggle" href="#"
371
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
372
- <div class="method-source-code" id="M000046-source">
371
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
372
+ <div class="method-source-code" id="M000048-source">
373
373
  <pre>
374
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 344</span>
374
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 354</span>
375
375
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert_file</span>(<span class="ruby-identifier">filename</span>)
376
376
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">convert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">filename</span>), <span class="ruby-identifier">filename</span>)
377
377
  <span class="ruby-keyword kw">end</span>
@@ -380,12 +380,12 @@ options:
380
380
  </div>
381
381
  </div>
382
382
 
383
- <div id="method-M000063" class="method-detail">
384
- <a name="M000063"></a>
383
+ <div id="method-M000065" class="method-detail">
384
+ <a name="M000065"></a>
385
385
 
386
386
  <div class="method-heading">
387
- <a href="#M000063" class="method-signature">
388
- <span class="method-name">render</span><span class="method-args">(context=Context.new)</span>
387
+ <a href="#M000065" class="method-signature">
388
+ <span class="method-name">render</span><span class="method-args">(_context=Context.new)</span>
389
389
  </a>
390
390
  </div>
391
391
 
@@ -395,14 +395,14 @@ evaluate converted ruby code and return it. argument &#8216;_context&#8217;
395
395
  should be a Hash object or <a href="Context.html">Context</a> object.
396
396
  </p>
397
397
  <p><a class="source-toggle" href="#"
398
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
399
- <div class="method-source-code" id="M000063-source">
398
+ onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
399
+ <div class="method-source-code" id="M000065-source">
400
400
  <pre>
401
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 612</span>
402
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">context</span>=<span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>)
403
- <span class="ruby-identifier">context</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">context</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
401
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 622</span>
402
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">_context</span>=<span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>)
403
+ <span class="ruby-identifier">_context</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">_context</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_context</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
404
404
  <span class="ruby-ivar">@proc</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">_render</span>()
405
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">context</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&amp;</span><span class="ruby-ivar">@proc</span>)
405
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">_context</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&amp;</span><span class="ruby-ivar">@proc</span>)
406
406
  <span class="ruby-keyword kw">end</span>
407
407
  </pre>
408
408
  </div>
@@ -411,11 +411,11 @@ should be a Hash object or <a href="Context.html">Context</a> object.
411
411
 
412
412
  <h3 class="section-bar">Protected Instance methods</h3>
413
413
 
414
- <div id="method-M000061" class="method-detail">
415
- <a name="M000061"></a>
414
+ <div id="method-M000063" class="method-detail">
415
+ <a name="M000063"></a>
416
416
 
417
417
  <div class="method-heading">
418
- <a href="#M000061" class="method-signature">
418
+ <a href="#M000063" class="method-signature">
419
419
  <span class="method-name">add_expr</span><span class="method-args">(code, flag_escape=nil)</span>
420
420
  </a>
421
421
  </div>
@@ -425,10 +425,10 @@ should be a Hash object or <a href="Context.html">Context</a> object.
425
425
  add expression code
426
426
  </p>
427
427
  <p><a class="source-toggle" href="#"
428
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
429
- <div class="method-source-code" id="M000061-source">
428
+ onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
429
+ <div class="method-source-code" id="M000063-source">
430
430
  <pre>
431
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 587</span>
431
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 597</span>
432
432
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr</span>(<span class="ruby-identifier">code</span>, <span class="ruby-identifier">flag_escape</span>=<span class="ruby-keyword kw">nil</span>)
433
433
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">code</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">code</span>.<span class="ruby-identifier">empty?</span>
434
434
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">flag_escape</span> <span class="ruby-value">? </span><span class="ruby-node">&quot;\#{#{@escapefunc}((#{code}).to_s)}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-node">&quot;\#{#{code}}&quot;</span>)
@@ -438,11 +438,11 @@ add expression code
438
438
  </div>
439
439
  </div>
440
440
 
441
- <div id="method-M000062" class="method-detail">
442
- <a name="M000062"></a>
441
+ <div id="method-M000064" class="method-detail">
442
+ <a name="M000064"></a>
443
443
 
444
444
  <div class="method-heading">
445
- <a href="#M000062" class="method-signature">
445
+ <a href="#M000064" class="method-signature">
446
446
  <span class="method-name">add_stmt</span><span class="method-args">(code)</span>
447
447
  </a>
448
448
  </div>
@@ -452,10 +452,10 @@ add expression code
452
452
  add statement code
453
453
  </p>
454
454
  <p><a class="source-toggle" href="#"
455
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
456
- <div class="method-source-code" id="M000062-source">
455
+ onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
456
+ <div class="method-source-code" id="M000064-source">
457
457
  <pre>
458
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 593</span>
458
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 603</span>
459
459
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">code</span>)
460
460
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">code</span>
461
461
  <span class="ruby-keyword kw">end</span>
@@ -464,11 +464,11 @@ add statement code
464
464
  </div>
465
465
  </div>
466
466
 
467
- <div id="method-M000059" class="method-detail">
468
- <a name="M000059"></a>
467
+ <div id="method-M000061" class="method-detail">
468
+ <a name="M000061"></a>
469
469
 
470
470
  <div class="method-heading">
471
- <a href="#M000059" class="method-signature">
471
+ <a href="#M000061" class="method-signature">
472
472
  <span class="method-name">add_text</span><span class="method-args">(text, encode_newline=false)</span>
473
473
  </a>
474
474
  </div>
@@ -478,10 +478,10 @@ add statement code
478
478
  add text string
479
479
  </p>
480
480
  <p><a class="source-toggle" href="#"
481
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
482
- <div class="method-source-code" id="M000059-source">
481
+ onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
482
+ <div class="method-source-code" id="M000061-source">
483
483
  <pre>
484
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 569</span>
484
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 579</span>
485
485
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">encode_newline</span>=<span class="ruby-keyword kw">false</span>)
486
486
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">text</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span>
487
487
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">encode_newline</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">text</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
@@ -496,24 +496,24 @@ add text string
496
496
  </div>
497
497
  </div>
498
498
 
499
- <div id="method-M000049" class="method-detail">
500
- <a name="M000049"></a>
499
+ <div id="method-M000051" class="method-detail">
500
+ <a name="M000051"></a>
501
501
 
502
502
  <div class="method-heading">
503
- <a href="#M000049" class="method-signature">
503
+ <a href="#M000051" class="method-signature">
504
504
  <span class="method-name">after_convert</span><span class="method-args">()</span>
505
505
  </a>
506
506
  </div>
507
507
 
508
508
  <div class="method-description">
509
509
  <p>
510
- hook method called after <a href="Template.html#M000047">convert</a>()
510
+ hook method called after <a href="Template.html#M000049">convert</a>()
511
511
  </p>
512
512
  <p><a class="source-toggle" href="#"
513
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
514
- <div class="method-source-code" id="M000049-source">
513
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
514
+ <div class="method-source-code" id="M000051-source">
515
515
  <pre>
516
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 376</span>
516
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 386</span>
517
517
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after_convert</span>()
518
518
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@newline</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@script</span>[<span class="ruby-value">-1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?\n</span>
519
519
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@postamble</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@newline</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@postamble</span>
@@ -523,24 +523,24 @@ hook method called after <a href="Template.html#M000047">convert</a>()
523
523
  </div>
524
524
  </div>
525
525
 
526
- <div id="method-M000048" class="method-detail">
527
- <a name="M000048"></a>
526
+ <div id="method-M000050" class="method-detail">
527
+ <a name="M000050"></a>
528
528
 
529
529
  <div class="method-heading">
530
- <a href="#M000048" class="method-signature">
530
+ <a href="#M000050" class="method-signature">
531
531
  <span class="method-name">before_convert</span><span class="method-args">()</span>
532
532
  </a>
533
533
  </div>
534
534
 
535
535
  <div class="method-description">
536
536
  <p>
537
- hook method called before <a href="Template.html#M000047">convert</a>()
537
+ hook method called before <a href="Template.html#M000049">convert</a>()
538
538
  </p>
539
539
  <p><a class="source-toggle" href="#"
540
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
541
- <div class="method-source-code" id="M000048-source">
540
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
541
+ <div class="method-source-code" id="M000050-source">
542
542
  <pre>
543
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 370</span>
543
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 380</span>
544
544
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before_convert</span>()
545
545
  <span class="ruby-ivar">@script</span> = <span class="ruby-value str">''</span>
546
546
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@preamble</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@preamble</span>
@@ -550,11 +550,11 @@ hook method called before <a href="Template.html#M000047">convert</a>()
550
550
  </div>
551
551
  </div>
552
552
 
553
- <div id="method-M000060" class="method-detail">
554
- <a name="M000060"></a>
553
+ <div id="method-M000062" class="method-detail">
554
+ <a name="M000062"></a>
555
555
 
556
556
  <div class="method-heading">
557
- <a href="#M000060" class="method-signature">
557
+ <a href="#M000062" class="method-signature">
558
558
  <span class="method-name">escape_str</span><span class="method-args">(str)</span>
559
559
  </a>
560
560
  </div>
@@ -565,10 +565,10 @@ escape &#8217;\&#8217; and &#8217;`&#8217; into &#8217;\\&#8217; and
565
565
  &#8217;\`&#8217;
566
566
  </p>
567
567
  <p><a class="source-toggle" href="#"
568
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
569
- <div class="method-source-code" id="M000060-source">
568
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
569
+ <div class="method-source-code" id="M000062-source">
570
570
  <pre>
571
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 580</span>
571
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 590</span>
572
572
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_str</span>(<span class="ruby-identifier">str</span>)
573
573
  <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/[`\\]/</span>, <span class="ruby-value str">'\\\\\&amp;'</span>)
574
574
  <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\r\n/</span>, <span class="ruby-value str">&quot;\\r\r\n&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@newline</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;\r\n&quot;</span>
@@ -579,21 +579,21 @@ escape &#8217;\&#8217; and &#8217;`&#8217; into &#8217;\\&#8217; and
579
579
  </div>
580
580
  </div>
581
581
 
582
- <div id="method-M000053" class="method-detail">
583
- <a name="M000053"></a>
582
+ <div id="method-M000055" class="method-detail">
583
+ <a name="M000055"></a>
584
584
 
585
585
  <div class="method-heading">
586
- <a href="#M000053" class="method-signature">
586
+ <a href="#M000055" class="method-signature">
587
587
  <span class="method-name">expr_pattern</span><span class="method-args">()</span>
588
588
  </a>
589
589
  </div>
590
590
 
591
591
  <div class="method-description">
592
592
  <p><a class="source-toggle" href="#"
593
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
594
- <div class="method-source-code" id="M000053-source">
593
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
594
+ <div class="method-source-code" id="M000055-source">
595
595
  <pre>
596
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 454</span>
596
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 464</span>
597
597
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expr_pattern</span>
598
598
  <span class="ruby-comment cmt">#return /([\#$])\{(.*?)\}/</span>
599
599
  <span class="ruby-keyword kw">return</span> <span class="ruby-regexp re">/(\$)\{(.*?)\}/</span><span class="ruby-identifier">m</span>
@@ -604,11 +604,11 @@ escape &#8217;\&#8217; and &#8217;`&#8217; into &#8217;\\&#8217; and
604
604
  </div>
605
605
  </div>
606
606
 
607
- <div id="method-M000054" class="method-detail">
608
- <a name="M000054"></a>
607
+ <div id="method-M000056" class="method-detail">
608
+ <a name="M000056"></a>
609
609
 
610
610
  <div class="method-heading">
611
- <a href="#M000054" class="method-signature">
611
+ <a href="#M000056" class="method-signature">
612
612
  <span class="method-name">get_expr_and_escapeflag</span><span class="method-args">(matched)</span>
613
613
  </a>
614
614
  </div>
@@ -616,14 +616,14 @@ escape &#8217;\&#8217; and &#8217;`&#8217; into &#8217;\\&#8217; and
616
616
  <div class="method-description">
617
617
  <p>
618
618
  ex. <a
619
- href="Template.html#M000054">get_expr_and_escapeflag</a>(&#8217;$&#8217;,
619
+ href="Template.html#M000056">get_expr_and_escapeflag</a>(&#8217;$&#8217;,
620
620
  &#8216;item[:name]&#8217;) =&gt; &#8216;item[:name]&#8217;, true
621
621
  </p>
622
622
  <p><a class="source-toggle" href="#"
623
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
624
- <div class="method-source-code" id="M000054-source">
623
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
624
+ <div class="method-source-code" id="M000056-source">
625
625
  <pre>
626
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 461</span>
626
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 471</span>
627
627
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_expr_and_escapeflag</span>(<span class="ruby-identifier">matched</span>)
628
628
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">matched</span>[<span class="ruby-value">2</span>], <span class="ruby-identifier">matched</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'$'</span>
629
629
  <span class="ruby-keyword kw">end</span>
@@ -632,11 +632,11 @@ href="Template.html#M000054">get_expr_and_escapeflag</a>(&#8217;$&#8217;,
632
632
  </div>
633
633
  </div>
634
634
 
635
- <div id="method-M000055" class="method-detail">
636
- <a name="M000055"></a>
635
+ <div id="method-M000057" class="method-detail">
636
+ <a name="M000057"></a>
637
637
 
638
638
  <div class="method-heading">
639
- <a href="#M000055" class="method-signature">
639
+ <a href="#M000057" class="method-signature">
640
640
  <span class="method-name">parse_exprs</span><span class="method-args">(input)</span>
641
641
  </a>
642
642
  </div>
@@ -646,10 +646,10 @@ href="Template.html#M000054">get_expr_and_escapeflag</a>(&#8217;$&#8217;,
646
646
  parse expressions (&#8217;#{&#8230;}&#8217; and &#8217;${&#8230;}&#8217;)
647
647
  </p>
648
648
  <p><a class="source-toggle" href="#"
649
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
650
- <div class="method-source-code" id="M000055-source">
649
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
650
+ <div class="method-source-code" id="M000057-source">
651
651
  <pre>
652
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 466</span>
652
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 476</span>
653
653
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_exprs</span>(<span class="ruby-identifier">input</span>)
654
654
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">input</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">empty?</span>
655
655
  <span class="ruby-identifier">pos</span> = <span class="ruby-value">0</span>
@@ -687,11 +687,11 @@ parse expressions (&#8217;#{&#8230;}&#8217; and &#8217;${&#8230;}&#8217;)
687
687
  </div>
688
688
  </div>
689
689
 
690
- <div id="method-M000052" class="method-detail">
691
- <a name="M000052"></a>
690
+ <div id="method-M000054" class="method-detail">
691
+ <a name="M000054"></a>
692
692
 
693
693
  <div class="method-heading">
694
- <a href="#M000052" class="method-signature">
694
+ <a href="#M000054" class="method-signature">
695
695
  <span class="method-name">parse_stmts</span><span class="method-args">(input)</span>
696
696
  </a>
697
697
  </div>
@@ -701,10 +701,10 @@ parse expressions (&#8217;#{&#8230;}&#8217; and &#8217;${&#8230;}&#8217;)
701
701
  parse statements (&#8217;&lt;?rb &#8230; ?&gt;&#8217;)
702
702
  </p>
703
703
  <p><a class="source-toggle" href="#"
704
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
705
- <div class="method-source-code" id="M000052-source">
704
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
705
+ <div class="method-source-code" id="M000054-source">
706
706
  <pre>
707
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 392</span>
707
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 402</span>
708
708
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_stmts</span>(<span class="ruby-identifier">input</span>)
709
709
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">input</span>
710
710
  <span class="ruby-identifier">is_bol</span> = <span class="ruby-keyword kw">true</span>
@@ -771,11 +771,11 @@ parse statements (&#8217;&lt;?rb &#8230; ?&gt;&#8217;)
771
771
  </div>
772
772
  </div>
773
773
 
774
- <div id="method-M000057" class="method-detail">
775
- <a name="M000057"></a>
774
+ <div id="method-M000059" class="method-detail">
775
+ <a name="M000059"></a>
776
776
 
777
777
  <div class="method-heading">
778
- <a href="#M000057" class="method-signature">
778
+ <a href="#M000059" class="method-signature">
779
779
  <span class="method-name">start_text_part</span><span class="method-args">()</span>
780
780
  </a>
781
781
  </div>
@@ -785,10 +785,10 @@ parse statements (&#8217;&lt;?rb &#8230; ?&gt;&#8217;)
785
785
  start text part
786
786
  </p>
787
787
  <p><a class="source-toggle" href="#"
788
- onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
789
- <div class="method-source-code" id="M000057-source">
788
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
789
+ <div class="method-source-code" id="M000059-source">
790
790
  <pre>
791
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 559</span>
791
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 569</span>
792
792
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_text_part</span>()
793
793
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; _buf &lt;&lt; %Q`&quot;</span>
794
794
  <span class="ruby-keyword kw">end</span>
@@ -797,11 +797,11 @@ start text part
797
797
  </div>
798
798
  </div>
799
799
 
800
- <div id="method-M000056" class="method-detail">
801
- <a name="M000056"></a>
800
+ <div id="method-M000058" class="method-detail">
801
+ <a name="M000058"></a>
802
802
 
803
803
  <div class="method-heading">
804
- <a href="#M000056" class="method-signature">
804
+ <a href="#M000058" class="method-signature">
805
805
  <span class="method-name">statement_hook</span><span class="method-args">(stmt)</span>
806
806
  </a>
807
807
  </div>
@@ -811,10 +811,10 @@ start text part
811
811
  expand macros and parse &#8217;#@ARGS&#8217; in a statement.
812
812
  </p>
813
813
  <p><a class="source-toggle" href="#"
814
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
815
- <div class="method-source-code" id="M000056-source">
814
+ onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
815
+ <div class="method-source-code" id="M000058-source">
816
816
  <pre>
817
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 500</span>
817
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 510</span>
818
818
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">statement_hook</span>(<span class="ruby-identifier">stmt</span>)
819
819
  <span class="ruby-comment cmt">## macro expantion</span>
820
820
  <span class="ruby-comment cmt">#macro_pattern = /\A\s*(\w+)\((.*?)\);?(\s*)\z/</span>
@@ -852,21 +852,21 @@ expand macros and parse &#8217;#@ARGS&#8217; in a statement.
852
852
  </div>
853
853
  </div>
854
854
 
855
- <div id="method-M000051" class="method-detail">
856
- <a name="M000051"></a>
855
+ <div id="method-M000053" class="method-detail">
856
+ <a name="M000053"></a>
857
857
 
858
858
  <div class="method-heading">
859
- <a href="#M000051" class="method-signature">
859
+ <a href="#M000053" class="method-signature">
860
860
  <span class="method-name">stmt_pattern</span><span class="method-args">()</span>
861
861
  </a>
862
862
  </div>
863
863
 
864
864
  <div class="method-description">
865
865
  <p><a class="source-toggle" href="#"
866
- onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
867
- <div class="method-source-code" id="M000051-source">
866
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
867
+ <div class="method-source-code" id="M000053-source">
868
868
  <pre>
869
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 387</span>
869
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 397</span>
870
870
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stmt_pattern</span>
871
871
  <span class="ruby-constant">STMT_PATTERN</span>
872
872
  <span class="ruby-keyword kw">end</span>
@@ -875,11 +875,11 @@ expand macros and parse &#8217;#@ARGS&#8217; in a statement.
875
875
  </div>
876
876
  </div>
877
877
 
878
- <div id="method-M000058" class="method-detail">
879
- <a name="M000058"></a>
878
+ <div id="method-M000060" class="method-detail">
879
+ <a name="M000060"></a>
880
880
 
881
881
  <div class="method-heading">
882
- <a href="#M000058" class="method-signature">
882
+ <a href="#M000060" class="method-signature">
883
883
  <span class="method-name">stop_text_part</span><span class="method-args">()</span>
884
884
  </a>
885
885
  </div>
@@ -889,10 +889,10 @@ expand macros and parse &#8217;#@ARGS&#8217; in a statement.
889
889
  stop text part
890
890
  </p>
891
891
  <p><a class="source-toggle" href="#"
892
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
893
- <div class="method-source-code" id="M000058-source">
892
+ onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
893
+ <div class="method-source-code" id="M000060-source">
894
894
  <pre>
895
- <span class="ruby-comment cmt"># File lib/tenjin.rb, line 564</span>
895
+ <span class="ruby-comment cmt"># File lib/tenjin.rb, line 574</span>
896
896
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop_text_part</span>()
897
897
  <span class="ruby-ivar">@script</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'`'</span>
898
898
  <span class="ruby-keyword kw">end</span>