erubis 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. data/CHANGES +120 -3
  2. data/README.txt +1 -1
  3. data/benchmark/Makefile +6 -0
  4. data/benchmark/bench.rb +306 -0
  5. data/benchmark/{erubybench.yaml → bench_context.yaml} +20 -20
  6. data/benchmark/templates/_footer.html +4 -0
  7. data/benchmark/{erubybench.rhtml → templates/_header.html} +1 -34
  8. data/benchmark/templates/bench_erb.rhtml +29 -0
  9. data/benchmark/templates/bench_erubis.rhtml +29 -0
  10. data/benchmark/templates/bench_eruby.rhtml +29 -0
  11. data/bin/erubis +2 -2
  12. data/contrib/erubis +3 -3114
  13. data/contrib/erubis-run.rb +132 -0
  14. data/contrib/inline-require +1 -1
  15. data/doc-api/classes/{ERB.html → ActionView/Base/ERB.html} +3 -3
  16. data/doc-api/classes/Erubis.html +8 -1
  17. data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
  18. data/doc-api/classes/Erubis/Basic/Converter.html +24 -24
  19. data/doc-api/classes/Erubis/BiPatternEnhancer.html +14 -14
  20. data/doc-api/classes/Erubis/CGenerator.html +60 -60
  21. data/doc-api/classes/Erubis/Context.html +42 -42
  22. data/doc-api/classes/Erubis/Converter.html +27 -27
  23. data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
  24. data/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
  25. data/doc-api/classes/Erubis/Engine.html +31 -31
  26. data/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
  27. data/doc-api/classes/Erubis/ErboutEruby.html +120 -0
  28. data/doc-api/classes/Erubis/Eruby.html +5 -0
  29. data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
  30. data/doc-api/classes/Erubis/Evaluator.html +19 -19
  31. data/doc-api/classes/Erubis/FastEruby.html +131 -0
  32. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +14 -14
  33. data/doc-api/classes/Erubis/Helpers/RailsHelper.html +49 -45
  34. data/doc-api/classes/Erubis/InterpolationEnhancer.html +304 -0
  35. data/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
  36. data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
  37. data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
  38. data/doc-api/classes/Erubis/Main.html +35 -27
  39. data/doc-api/classes/Erubis/NoCodeEnhancer.html +5 -5
  40. data/doc-api/classes/Erubis/NoTextEnhancer.html +7 -7
  41. data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
  42. data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
  43. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
  44. data/doc-api/classes/Erubis/PI/Converter.html +18 -18
  45. data/doc-api/classes/Erubis/PI/Ec.html +6 -6
  46. data/doc-api/classes/Erubis/PI/Ejava.html +6 -6
  47. data/doc-api/classes/Erubis/PI/Ejavascript.html +6 -6
  48. data/doc-api/classes/Erubis/PI/Eperl.html +6 -6
  49. data/doc-api/classes/Erubis/PI/Ephp.html +6 -6
  50. data/doc-api/classes/Erubis/PI/Eruby.html +7 -7
  51. data/doc-api/classes/Erubis/PI/Escheme.html +6 -6
  52. data/doc-api/classes/Erubis/PI/TinyEruby.html +24 -24
  53. data/doc-api/classes/Erubis/PercentLineEnhancer.html +8 -8
  54. data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
  55. data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
  56. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
  57. data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
  58. data/doc-api/classes/Erubis/RubyEvaluator.html +12 -12
  59. data/doc-api/classes/Erubis/RubyGenerator.html +48 -48
  60. data/doc-api/classes/Erubis/SchemeGenerator.html +60 -60
  61. data/doc-api/classes/Erubis/SimplifyEnhancer.html +8 -8
  62. data/doc-api/classes/Erubis/StdoutEnhancer.html +12 -12
  63. data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
  64. data/doc-api/classes/Erubis/TinyEruby.html +24 -24
  65. data/doc-api/classes/Erubis/XmlHelper.html +14 -14
  66. data/doc-api/created.rid +1 -1
  67. data/doc-api/files/README_txt.html +4 -4
  68. data/doc-api/files/erubis/context_rb.html +2 -2
  69. data/doc-api/files/erubis/converter_rb.html +2 -2
  70. data/doc-api/files/erubis/engine/ec_rb.html +2 -2
  71. data/doc-api/files/erubis/engine/ejava_rb.html +2 -2
  72. data/doc-api/files/erubis/engine/ejavascript_rb.html +2 -2
  73. data/doc-api/files/erubis/engine/enhanced_rb.html +2 -2
  74. data/doc-api/files/erubis/engine/eperl_rb.html +2 -2
  75. data/doc-api/files/erubis/engine/ephp_rb.html +2 -2
  76. data/doc-api/files/erubis/engine/eruby_rb.html +2 -2
  77. data/doc-api/files/erubis/engine/escheme_rb.html +2 -2
  78. data/doc-api/files/erubis/engine/optimized_rb.html +2 -2
  79. data/doc-api/files/erubis/engine_rb.html +2 -2
  80. data/doc-api/files/erubis/enhancer_rb.html +2 -2
  81. data/doc-api/files/erubis/error_rb.html +2 -2
  82. data/doc-api/files/erubis/evaluator_rb.html +2 -2
  83. data/doc-api/files/erubis/generator_rb.html +2 -2
  84. data/doc-api/files/erubis/helper_rb.html +2 -2
  85. data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
  86. data/doc-api/files/erubis/local-setting_rb.html +2 -2
  87. data/doc-api/files/erubis/main_rb.html +2 -2
  88. data/doc-api/files/erubis/tiny_rb.html +2 -2
  89. data/doc-api/files/erubis_rb.html +1 -1
  90. data/doc-api/fr_class_index.html +8 -1
  91. data/doc-api/fr_method_index.html +166 -158
  92. data/doc/users-guide.html +623 -215
  93. data/lib/erubis.rb +2 -2
  94. data/lib/erubis/context.rb +2 -2
  95. data/lib/erubis/converter.rb +2 -2
  96. data/lib/erubis/engine.rb +3 -3
  97. data/lib/erubis/engine/ec.rb +2 -2
  98. data/lib/erubis/engine/ejava.rb +2 -2
  99. data/lib/erubis/engine/ejavascript.rb +2 -2
  100. data/lib/erubis/engine/enhanced.rb +17 -2
  101. data/lib/erubis/engine/eperl.rb +2 -2
  102. data/lib/erubis/engine/ephp.rb +2 -2
  103. data/lib/erubis/engine/eruby.rb +10 -2
  104. data/lib/erubis/engine/escheme.rb +2 -2
  105. data/lib/erubis/engine/optimized.rb +2 -2
  106. data/lib/erubis/enhancer.rb +134 -25
  107. data/lib/erubis/error.rb +2 -2
  108. data/lib/erubis/evaluator.rb +2 -2
  109. data/lib/erubis/generator.rb +2 -2
  110. data/lib/erubis/helper.rb +2 -2
  111. data/lib/erubis/helpers/rails_helper.rb +19 -75
  112. data/lib/erubis/local-setting.rb +2 -2
  113. data/lib/erubis/main.rb +63 -36
  114. data/lib/erubis/tiny.rb +2 -2
  115. data/test/assert-text-equal.rb +2 -2
  116. data/test/data/users-guide/Example.ejava +55 -0
  117. data/test/data/users-guide/array_example.result +9 -0
  118. data/test/data/users-guide/arraybuffer_example.result +9 -0
  119. data/test/data/users-guide/bipattern-example.rhtml +4 -0
  120. data/test/data/users-guide/bipattern_example.result +6 -0
  121. data/test/data/users-guide/context.rb +6 -0
  122. data/test/data/users-guide/context.yaml +8 -0
  123. data/test/data/users-guide/escape_example.result +9 -0
  124. data/test/data/users-guide/example.ec +27 -0
  125. data/test/data/users-guide/example.ejs +20 -0
  126. data/test/data/users-guide/example.eperl +18 -0
  127. data/test/data/users-guide/example.ephp +18 -0
  128. data/test/data/users-guide/example.eruby +6 -0
  129. data/test/data/users-guide/example.escheme +28 -0
  130. data/test/data/users-guide/example1.eruby +6 -0
  131. data/test/data/users-guide/example1.rb +16 -0
  132. data/test/data/users-guide/example1.result +16 -0
  133. data/test/data/users-guide/example10.rb +4 -0
  134. data/test/data/users-guide/example10.result +17 -0
  135. data/test/data/users-guide/example10.xhtml +14 -0
  136. data/test/data/users-guide/example10_x.result +17 -0
  137. data/test/data/users-guide/example11.php +20 -0
  138. data/test/data/users-guide/example11.result +23 -0
  139. data/test/data/users-guide/example11.rhtml +21 -0
  140. data/test/data/users-guide/example11_C.result +10 -0
  141. data/test/data/users-guide/example11_N.result +16 -0
  142. data/test/data/users-guide/example11_U.result +16 -0
  143. data/test/data/users-guide/example11_php.result +15 -0
  144. data/test/data/users-guide/example1_x.result +9 -0
  145. data/test/data/users-guide/example2.eruby +7 -0
  146. data/test/data/users-guide/example2.rb +10 -0
  147. data/test/data/users-guide/example2.result +27 -0
  148. data/test/data/users-guide/example2_trim.result +10 -0
  149. data/test/data/users-guide/example2_x.result +10 -0
  150. data/test/data/users-guide/example3.eruby +6 -0
  151. data/test/data/users-guide/example3.rb +10 -0
  152. data/test/data/users-guide/example31.result +22 -0
  153. data/test/data/users-guide/example32.result +4 -0
  154. data/test/data/users-guide/example3_e.result +8 -0
  155. data/test/data/users-guide/example4.eruby +3 -0
  156. data/test/data/users-guide/example4.rb +11 -0
  157. data/test/data/users-guide/example4.result +10 -0
  158. data/test/data/users-guide/example4_x.result +5 -0
  159. data/test/data/users-guide/example5.eruby +6 -0
  160. data/test/data/users-guide/example5.rb +16 -0
  161. data/test/data/users-guide/example5.result +7 -0
  162. data/test/data/users-guide/example6.rb +12 -0
  163. data/test/data/users-guide/example6.result +7 -0
  164. data/test/data/users-guide/example7.eruby +8 -0
  165. data/test/data/users-guide/example71.result +13 -0
  166. data/test/data/users-guide/example72.result +13 -0
  167. data/test/data/users-guide/example8.eruby +6 -0
  168. data/test/data/users-guide/example8_ruby.result +7 -0
  169. data/test/data/users-guide/example8_yaml.result +7 -0
  170. data/test/data/users-guide/example9.eruby +3 -0
  171. data/test/data/users-guide/example9.rb +8 -0
  172. data/test/data/users-guide/example9.result +9 -0
  173. data/test/data/users-guide/example91.result +5 -0
  174. data/test/data/users-guide/example92.result +4 -0
  175. data/test/data/users-guide/example_c.result +29 -0
  176. data/test/data/users-guide/example_java.result +56 -0
  177. data/test/data/users-guide/example_js.result +22 -0
  178. data/test/data/users-guide/example_perl.result +20 -0
  179. data/test/data/users-guide/example_php.result +19 -0
  180. data/test/data/users-guide/example_scheme.result +30 -0
  181. data/test/data/users-guide/example_scheme_display.result +29 -0
  182. data/test/data/users-guide/fasteruby.rb +11 -0
  183. data/test/data/users-guide/fasteruby.result +38 -0
  184. data/test/data/users-guide/fasteruby.rhtml +15 -0
  185. data/test/data/users-guide/headerfooter-example.eruby +9 -0
  186. data/test/data/users-guide/headerfooter-example2.rb +8 -0
  187. data/test/data/users-guide/headerfooter-example2.rhtml +10 -0
  188. data/test/data/users-guide/headerfooter_example.result +11 -0
  189. data/test/data/users-guide/headerfooter_example2.result +13 -0
  190. data/test/data/users-guide/interpolation_example.result +9 -0
  191. data/test/data/users-guide/nocode-example.eruby +14 -0
  192. data/test/data/users-guide/nocode-php.result +20 -0
  193. data/test/data/users-guide/nocode_example.result +15 -0
  194. data/test/data/users-guide/normal-eruby-test.eruby +9 -0
  195. data/test/data/users-guide/normal_eruby_test.result +11 -0
  196. data/test/data/users-guide/notext-example.eruby +14 -0
  197. data/test/data/users-guide/notext-example.php +19 -0
  198. data/test/data/users-guide/notext-php.result +20 -0
  199. data/test/data/users-guide/notext_example.result +16 -0
  200. data/test/data/users-guide/percentline-example.rhtml +4 -0
  201. data/test/data/users-guide/percentline_example.result +7 -0
  202. data/test/data/users-guide/printenable_example.result +4 -0
  203. data/test/data/users-guide/printenabled-example.eruby +3 -0
  204. data/test/data/users-guide/printenabled-example.rb +8 -0
  205. data/test/data/users-guide/printstatement_example.result +8 -0
  206. data/test/data/users-guide/simplify_example.result +9 -0
  207. data/test/data/users-guide/stdout_exmple.result +9 -0
  208. data/test/data/users-guide/stringbuffer_example.result +9 -0
  209. data/test/test-engines.rb +2 -2
  210. data/test/test-enhancers.rb +569 -0
  211. data/test/test-erubis.rb +3 -380
  212. data/test/test-main.rb +39 -15
  213. data/test/test-users-guide.rb +56 -0
  214. data/test/test.rb +4 -3
  215. data/test/testutil.rb +2 -2
  216. metadata +166 -57
  217. data/benchmark/erubybench-lib.rb +0 -189
  218. data/benchmark/erubybench.rb +0 -600
  219. data/bin/notext +0 -154
  220. data/test/test-notext.rb +0 -27
@@ -0,0 +1,120 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Erubis::InterpolationEruby</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Erubis::InterpolationEruby</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/erubis/engine/enhanced_rb.html">
59
+ erubis/engine/enhanced.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Eruby.html">
69
+ Eruby
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+
88
+ </div>
89
+
90
+
91
+ <!-- if includes -->
92
+ <div id="includes">
93
+ <h3 class="section-bar">Included Modules</h3>
94
+
95
+ <div id="includes-list">
96
+ <span class="include-name"><a href="InterpolationEnhancer.html">InterpolationEnhancer</a></span>
97
+ </div>
98
+ </div>
99
+
100
+ <div id="section">
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <!-- if method_list -->
110
+
111
+
112
+ </div>
113
+
114
+
115
+ <div id="validator-badges">
116
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
117
+ </div>
118
+
119
+ </body>
120
+ </html>
@@ -80,15 +80,15 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000143">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000142">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000141">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000144">add_postamble</a>&nbsp;&nbsp;
87
- <a href="#M000137">add_preamble</a>&nbsp;&nbsp;
88
- <a href="#M000140">add_stmt</a>&nbsp;&nbsp;
89
- <a href="#M000139">add_text</a>&nbsp;&nbsp;
90
- <a href="#M000138">escape_text</a>&nbsp;&nbsp;
91
- <a href="#M000136">init_generator</a>&nbsp;&nbsp;
83
+ <a href="#M000148">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000147">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000146">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000149">add_postamble</a>&nbsp;&nbsp;
87
+ <a href="#M000142">add_preamble</a>&nbsp;&nbsp;
88
+ <a href="#M000145">add_stmt</a>&nbsp;&nbsp;
89
+ <a href="#M000144">add_text</a>&nbsp;&nbsp;
90
+ <a href="#M000143">escape_text</a>&nbsp;&nbsp;
91
+ <a href="#M000141">init_generator</a>&nbsp;&nbsp;
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-M000143" class="method-detail">
121
- <a name="M000143"></a>
120
+ <div id="method-M000148" class="method-detail">
121
+ <a name="M000148"></a>
122
122
 
123
123
  <div class="method-heading">
124
- <a href="#M000143" class="method-signature">
124
+ <a href="#M000148" 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('M000143-source');return false;">[Source]</a></p>
132
- <div class="method-source-code" id="M000143-source">
131
+ onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
132
+ <div class="method-source-code" id="M000148-source">
133
133
  <pre>
134
134
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 69</span>
135
135
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -142,19 +142,19 @@
142
142
  </div>
143
143
  </div>
144
144
 
145
- <div id="method-M000142" class="method-detail">
146
- <a name="M000142"></a>
145
+ <div id="method-M000147" class="method-detail">
146
+ <a name="M000147"></a>
147
147
 
148
148
  <div class="method-heading">
149
- <a href="#M000142" class="method-signature">
149
+ <a href="#M000147" 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('M000142-source');return false;">[Source]</a></p>
157
- <div class="method-source-code" id="M000142-source">
156
+ onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
157
+ <div class="method-source-code" id="M000147-source">
158
158
  <pre>
159
159
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 65</span>
160
160
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -165,19 +165,19 @@
165
165
  </div>
166
166
  </div>
167
167
 
168
- <div id="method-M000141" class="method-detail">
169
- <a name="M000141"></a>
168
+ <div id="method-M000146" class="method-detail">
169
+ <a name="M000146"></a>
170
170
 
171
171
  <div class="method-heading">
172
- <a href="#M000141" class="method-signature">
172
+ <a href="#M000146" 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('M000141-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000141-source">
179
+ onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
180
+ <div class="method-source-code" id="M000146-source">
181
181
  <pre>
182
182
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 59</span>
183
183
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -190,19 +190,19 @@
190
190
  </div>
191
191
  </div>
192
192
 
193
- <div id="method-M000144" class="method-detail">
194
- <a name="M000144"></a>
193
+ <div id="method-M000149" class="method-detail">
194
+ <a name="M000149"></a>
195
195
 
196
196
  <div class="method-heading">
197
- <a href="#M000144" class="method-signature">
197
+ <a href="#M000149" class="method-signature">
198
198
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
199
199
  </a>
200
200
  </div>
201
201
 
202
202
  <div class="method-description">
203
203
  <p><a class="source-toggle" href="#"
204
- onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
205
- <div class="method-source-code" id="M000144-source">
204
+ onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
205
+ <div class="method-source-code" id="M000149-source">
206
206
  <pre>
207
207
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 75</span>
208
208
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -215,19 +215,19 @@
215
215
  </div>
216
216
  </div>
217
217
 
218
- <div id="method-M000137" class="method-detail">
219
- <a name="M000137"></a>
218
+ <div id="method-M000142" class="method-detail">
219
+ <a name="M000142"></a>
220
220
 
221
221
  <div class="method-heading">
222
- <a href="#M000137" class="method-signature">
222
+ <a href="#M000142" class="method-signature">
223
223
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
224
224
  </a>
225
225
  </div>
226
226
 
227
227
  <div class="method-description">
228
228
  <p><a class="source-toggle" href="#"
229
- onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
230
- <div class="method-source-code" id="M000137-source">
229
+ onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
230
+ <div class="method-source-code" id="M000142-source">
231
231
  <pre>
232
232
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 33</span>
233
233
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -238,19 +238,19 @@
238
238
  </div>
239
239
  </div>
240
240
 
241
- <div id="method-M000140" class="method-detail">
242
- <a name="M000140"></a>
241
+ <div id="method-M000145" class="method-detail">
242
+ <a name="M000145"></a>
243
243
 
244
244
  <div class="method-heading">
245
- <a href="#M000140" class="method-signature">
245
+ <a href="#M000145" class="method-signature">
246
246
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
247
247
  </a>
248
248
  </div>
249
249
 
250
250
  <div class="method-description">
251
251
  <p><a class="source-toggle" href="#"
252
- onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
253
- <div class="method-source-code" id="M000140-source">
252
+ onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
253
+ <div class="method-source-code" id="M000145-source">
254
254
  <pre>
255
255
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 55</span>
256
256
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_stmt</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -261,19 +261,19 @@
261
261
  </div>
262
262
  </div>
263
263
 
264
- <div id="method-M000139" class="method-detail">
265
- <a name="M000139"></a>
264
+ <div id="method-M000144" class="method-detail">
265
+ <a name="M000144"></a>
266
266
 
267
267
  <div class="method-heading">
268
- <a href="#M000139" class="method-signature">
268
+ <a href="#M000144" class="method-signature">
269
269
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
270
270
  </a>
271
271
  </div>
272
272
 
273
273
  <div class="method-description">
274
274
  <p><a class="source-toggle" href="#"
275
- onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
276
- <div class="method-source-code" id="M000139-source">
275
+ onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000144-source">
277
277
  <pre>
278
278
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 42</span>
279
279
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_text</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">text</span>)
@@ -293,19 +293,19 @@
293
293
  </div>
294
294
  </div>
295
295
 
296
- <div id="method-M000138" class="method-detail">
297
- <a name="M000138"></a>
296
+ <div id="method-M000143" class="method-detail">
297
+ <a name="M000143"></a>
298
298
 
299
299
  <div class="method-heading">
300
- <a href="#M000138" class="method-signature">
300
+ <a href="#M000143" class="method-signature">
301
301
  <span class="method-name">escape_text</span><span class="method-args">(text)</span>
302
302
  </a>
303
303
  </div>
304
304
 
305
305
  <div class="method-description">
306
306
  <p><a class="source-toggle" href="#"
307
- onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
308
- <div class="method-source-code" id="M000138-source">
307
+ onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
308
+ <div class="method-source-code" id="M000143-source">
309
309
  <pre>
310
310
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 37</span>
311
311
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -317,19 +317,19 @@
317
317
  </div>
318
318
  </div>
319
319
 
320
- <div id="method-M000136" class="method-detail">
321
- <a name="M000136"></a>
320
+ <div id="method-M000141" class="method-detail">
321
+ <a name="M000141"></a>
322
322
 
323
323
  <div class="method-heading">
324
- <a href="#M000136" class="method-signature">
324
+ <a href="#M000141" class="method-signature">
325
325
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
326
326
  </a>
327
327
  </div>
328
328
 
329
329
  <div class="method-description">
330
330
  <p><a class="source-toggle" href="#"
331
- onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
332
- <div class="method-source-code" id="M000136-source">
331
+ onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
332
+ <div class="method-source-code" id="M000141-source">
333
333
  <pre>
334
334
  <span class="ruby-comment cmt"># File erubis/engine/ejava.rb, line 25</span>
335
335
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})
@@ -80,16 +80,16 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000134">add_expr_debug</a>&nbsp;&nbsp;
84
- <a href="#M000133">add_expr_escaped</a>&nbsp;&nbsp;
85
- <a href="#M000132">add_expr_literal</a>&nbsp;&nbsp;
86
- <a href="#M000129">add_indent</a>&nbsp;&nbsp;
87
- <a href="#M000135">add_postamble</a>&nbsp;&nbsp;
88
- <a href="#M000127">add_preamble</a>&nbsp;&nbsp;
89
- <a href="#M000131">add_stmt</a>&nbsp;&nbsp;
90
- <a href="#M000130">add_text</a>&nbsp;&nbsp;
91
- <a href="#M000128">escape_text</a>&nbsp;&nbsp;
92
- <a href="#M000126">init_generator</a>&nbsp;&nbsp;
83
+ <a href="#M000139">add_expr_debug</a>&nbsp;&nbsp;
84
+ <a href="#M000138">add_expr_escaped</a>&nbsp;&nbsp;
85
+ <a href="#M000137">add_expr_literal</a>&nbsp;&nbsp;
86
+ <a href="#M000134">add_indent</a>&nbsp;&nbsp;
87
+ <a href="#M000140">add_postamble</a>&nbsp;&nbsp;
88
+ <a href="#M000132">add_preamble</a>&nbsp;&nbsp;
89
+ <a href="#M000136">add_stmt</a>&nbsp;&nbsp;
90
+ <a href="#M000135">add_text</a>&nbsp;&nbsp;
91
+ <a href="#M000133">escape_text</a>&nbsp;&nbsp;
92
+ <a href="#M000131">init_generator</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -118,19 +118,19 @@
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Instance methods</h3>
120
120
 
121
- <div id="method-M000134" class="method-detail">
122
- <a name="M000134"></a>
121
+ <div id="method-M000139" class="method-detail">
122
+ <a name="M000139"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="#M000134" class="method-signature">
125
+ <a href="#M000139" class="method-signature">
126
126
  <span class="method-name">add_expr_debug</span><span class="method-args">(src, code)</span>
127
127
  </a>
128
128
  </div>
129
129
 
130
130
  <div class="method-description">
131
131
  <p><a class="source-toggle" href="#"
132
- onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
133
- <div class="method-source-code" id="M000134-source">
132
+ onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
133
+ <div class="method-source-code" id="M000139-source">
134
134
  <pre>
135
135
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 71</span>
136
136
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_debug</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -143,19 +143,19 @@
143
143
  </div>
144
144
  </div>
145
145
 
146
- <div id="method-M000133" class="method-detail">
147
- <a name="M000133"></a>
146
+ <div id="method-M000138" class="method-detail">
147
+ <a name="M000138"></a>
148
148
 
149
149
  <div class="method-heading">
150
- <a href="#M000133" class="method-signature">
150
+ <a href="#M000138" class="method-signature">
151
151
  <span class="method-name">add_expr_escaped</span><span class="method-args">(src, code)</span>
152
152
  </a>
153
153
  </div>
154
154
 
155
155
  <div class="method-description">
156
156
  <p><a class="source-toggle" href="#"
157
- onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
158
- <div class="method-source-code" id="M000133-source">
157
+ onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
158
+ <div class="method-source-code" id="M000138-source">
159
159
  <pre>
160
160
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 67</span>
161
161
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_escaped</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -166,19 +166,19 @@
166
166
  </div>
167
167
  </div>
168
168
 
169
- <div id="method-M000132" class="method-detail">
170
- <a name="M000132"></a>
169
+ <div id="method-M000137" class="method-detail">
170
+ <a name="M000137"></a>
171
171
 
172
172
  <div class="method-heading">
173
- <a href="#M000132" class="method-signature">
173
+ <a href="#M000137" class="method-signature">
174
174
  <span class="method-name">add_expr_literal</span><span class="method-args">(src, code)</span>
175
175
  </a>
176
176
  </div>
177
177
 
178
178
  <div class="method-description">
179
179
  <p><a class="source-toggle" href="#"
180
- onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
181
- <div class="method-source-code" id="M000132-source">
180
+ onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
181
+ <div class="method-source-code" id="M000137-source">
182
182
  <pre>
183
183
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 61</span>
184
184
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_expr_literal</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">code</span>)
@@ -191,19 +191,19 @@
191
191
  </div>
192
192
  </div>
193
193
 
194
- <div id="method-M000129" class="method-detail">
195
- <a name="M000129"></a>
194
+ <div id="method-M000134" class="method-detail">
195
+ <a name="M000134"></a>
196
196
 
197
197
  <div class="method-heading">
198
- <a href="#M000129" class="method-signature">
198
+ <a href="#M000134" class="method-signature">
199
199
  <span class="method-name">add_indent</span><span class="method-args">(src, indent)</span>
200
200
  </a>
201
201
  </div>
202
202
 
203
203
  <div class="method-description">
204
204
  <p><a class="source-toggle" href="#"
205
- onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
206
- <div class="method-source-code" id="M000129-source">
205
+ onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
206
+ <div class="method-source-code" id="M000134-source">
207
207
  <pre>
208
208
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 40</span>
209
209
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_indent</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">indent</span>)
@@ -214,19 +214,19 @@
214
214
  </div>
215
215
  </div>
216
216
 
217
- <div id="method-M000135" class="method-detail">
218
- <a name="M000135"></a>
217
+ <div id="method-M000140" class="method-detail">
218
+ <a name="M000140"></a>
219
219
 
220
220
  <div class="method-heading">
221
- <a href="#M000135" class="method-signature">
221
+ <a href="#M000140" class="method-signature">
222
222
  <span class="method-name">add_postamble</span><span class="method-args">(src)</span>
223
223
  </a>
224
224
  </div>
225
225
 
226
226
  <div class="method-description">
227
227
  <p><a class="source-toggle" href="#"
228
- onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
229
- <div class="method-source-code" id="M000135-source">
228
+ onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
229
+ <div class="method-source-code" id="M000140-source">
230
230
  <pre>
231
231
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 77</span>
232
232
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
@@ -238,19 +238,19 @@
238
238
  </div>
239
239
  </div>
240
240
 
241
- <div id="method-M000127" class="method-detail">
242
- <a name="M000127"></a>
241
+ <div id="method-M000132" class="method-detail">
242
+ <a name="M000132"></a>
243
243
 
244
244
  <div class="method-heading">
245
- <a href="#M000127" class="method-signature">
245
+ <a href="#M000132" class="method-signature">
246
246
  <span class="method-name">add_preamble</span><span class="method-args">(src)</span>
247
247
  </a>
248
248
  </div>
249
249
 
250
250
  <div class="method-description">
251
251
  <p><a class="source-toggle" href="#"
252
- onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
253
- <div class="method-source-code" id="M000127-source">
252
+ onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
253
+ <div class="method-source-code" id="M000132-source">
254
254
  <pre>
255
255
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 31</span>
256
256
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
@@ -261,19 +261,19 @@
261
261
  </div>
262
262
  </div>
263
263
 
264
- <div id="method-M000131" class="method-detail">
265
- <a name="M000131"></a>
264
+ <div id="method-M000136" class="method-detail">
265
+ <a name="M000136"></a>
266
266
 
267
267
  <div class="method-heading">
268
- <a href="#M000131" class="method-signature">
268
+ <a href="#M000136" class="method-signature">
269
269
  <span class="method-name">add_stmt</span><span class="method-args">(src, code)</span>
270
270
  </a>
271
271
  </div>
272
272
 
273
273
  <div class="method-description">
274
274
  <p><a class="source-toggle" href="#"
275
- onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
276
- <div class="method-source-code" id="M000131-source">
275
+ onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000136-source">
277
277
  <pre>
278
278
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 57</span>
279
279
  <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>)
@@ -284,19 +284,19 @@
284
284
  </div>
285
285
  </div>
286
286
 
287
- <div id="method-M000130" class="method-detail">
288
- <a name="M000130"></a>
287
+ <div id="method-M000135" class="method-detail">
288
+ <a name="M000135"></a>
289
289
 
290
290
  <div class="method-heading">
291
- <a href="#M000130" class="method-signature">
291
+ <a href="#M000135" class="method-signature">
292
292
  <span class="method-name">add_text</span><span class="method-args">(src, text)</span>
293
293
  </a>
294
294
  </div>
295
295
 
296
296
  <div class="method-description">
297
297
  <p><a class="source-toggle" href="#"
298
- onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
299
- <div class="method-source-code" id="M000130-source">
298
+ onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
299
+ <div class="method-source-code" id="M000135-source">
300
300
  <pre>
301
301
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 44</span>
302
302
  <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>)
@@ -316,19 +316,19 @@
316
316
  </div>
317
317
  </div>
318
318
 
319
- <div id="method-M000128" class="method-detail">
320
- <a name="M000128"></a>
319
+ <div id="method-M000133" class="method-detail">
320
+ <a name="M000133"></a>
321
321
 
322
322
  <div class="method-heading">
323
- <a href="#M000128" class="method-signature">
323
+ <a href="#M000133" class="method-signature">
324
324
  <span class="method-name">escape_text</span><span class="method-args">(text)</span>
325
325
  </a>
326
326
  </div>
327
327
 
328
328
  <div class="method-description">
329
329
  <p><a class="source-toggle" href="#"
330
- onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
331
- <div class="method-source-code" id="M000128-source">
330
+ onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
331
+ <div class="method-source-code" id="M000133-source">
332
332
  <pre>
333
333
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 35</span>
334
334
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escape_text</span>(<span class="ruby-identifier">text</span>)
@@ -340,19 +340,19 @@
340
340
  </div>
341
341
  </div>
342
342
 
343
- <div id="method-M000126" class="method-detail">
344
- <a name="M000126"></a>
343
+ <div id="method-M000131" class="method-detail">
344
+ <a name="M000131"></a>
345
345
 
346
346
  <div class="method-heading">
347
- <a href="#M000126" class="method-signature">
347
+ <a href="#M000131" class="method-signature">
348
348
  <span class="method-name">init_generator</span><span class="method-args">(properties={})</span>
349
349
  </a>
350
350
  </div>
351
351
 
352
352
  <div class="method-description">
353
353
  <p><a class="source-toggle" href="#"
354
- onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
355
- <div class="method-source-code" id="M000126-source">
354
+ onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
355
+ <div class="method-source-code" id="M000131-source">
356
356
  <pre>
357
357
  <span class="ruby-comment cmt"># File erubis/engine/ejavascript.rb, line 24</span>
358
358
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_generator</span>(<span class="ruby-identifier">properties</span>={})