erubis 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +120 -3
- data/README.txt +1 -1
- data/benchmark/Makefile +6 -0
- data/benchmark/bench.rb +306 -0
- data/benchmark/{erubybench.yaml → bench_context.yaml} +20 -20
- data/benchmark/templates/_footer.html +4 -0
- data/benchmark/{erubybench.rhtml → templates/_header.html} +1 -34
- data/benchmark/templates/bench_erb.rhtml +29 -0
- data/benchmark/templates/bench_erubis.rhtml +29 -0
- data/benchmark/templates/bench_eruby.rhtml +29 -0
- data/bin/erubis +2 -2
- data/contrib/erubis +3 -3114
- data/contrib/erubis-run.rb +132 -0
- data/contrib/inline-require +1 -1
- data/doc-api/classes/{ERB.html → ActionView/Base/ERB.html} +3 -3
- data/doc-api/classes/Erubis.html +8 -1
- data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Basic/Converter.html +24 -24
- data/doc-api/classes/Erubis/BiPatternEnhancer.html +14 -14
- 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 +150 -0
- data/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
- data/doc-api/classes/Erubis/Engine.html +31 -31
- data/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
- data/doc-api/classes/Erubis/ErboutEruby.html +120 -0
- data/doc-api/classes/Erubis/Eruby.html +5 -0
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Evaluator.html +19 -19
- data/doc-api/classes/Erubis/FastEruby.html +131 -0
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +14 -14
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +49 -45
- data/doc-api/classes/Erubis/InterpolationEnhancer.html +304 -0
- data/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
- 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 +35 -27
- data/doc-api/classes/Erubis/NoCodeEnhancer.html +5 -5
- data/doc-api/classes/Erubis/NoTextEnhancer.html +7 -7
- 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 +18 -18
- 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 +7 -7
- 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 +8 -8
- data/doc-api/classes/Erubis/PerlGenerator.html +54 -54
- data/doc-api/classes/Erubis/PhpGenerator.html +54 -54
- data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +20 -20
- data/doc-api/classes/Erubis/PrintOutEnhancer.html +30 -30
- data/doc-api/classes/Erubis/RubyEvaluator.html +12 -12
- 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 +8 -8
- 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 +14 -14
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +4 -4
- data/doc-api/files/erubis/context_rb.html +2 -2
- data/doc-api/files/erubis/converter_rb.html +2 -2
- data/doc-api/files/erubis/engine/ec_rb.html +2 -2
- data/doc-api/files/erubis/engine/ejava_rb.html +2 -2
- data/doc-api/files/erubis/engine/ejavascript_rb.html +2 -2
- data/doc-api/files/erubis/engine/enhanced_rb.html +2 -2
- data/doc-api/files/erubis/engine/eperl_rb.html +2 -2
- data/doc-api/files/erubis/engine/ephp_rb.html +2 -2
- data/doc-api/files/erubis/engine/eruby_rb.html +2 -2
- data/doc-api/files/erubis/engine/escheme_rb.html +2 -2
- data/doc-api/files/erubis/engine/optimized_rb.html +2 -2
- data/doc-api/files/erubis/engine_rb.html +2 -2
- data/doc-api/files/erubis/enhancer_rb.html +2 -2
- data/doc-api/files/erubis/error_rb.html +2 -2
- data/doc-api/files/erubis/evaluator_rb.html +2 -2
- data/doc-api/files/erubis/generator_rb.html +2 -2
- data/doc-api/files/erubis/helper_rb.html +2 -2
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
- data/doc-api/files/erubis/local-setting_rb.html +2 -2
- data/doc-api/files/erubis/main_rb.html +2 -2
- data/doc-api/files/erubis/tiny_rb.html +2 -2
- data/doc-api/files/erubis_rb.html +1 -1
- data/doc-api/fr_class_index.html +8 -1
- data/doc-api/fr_method_index.html +166 -158
- data/doc/users-guide.html +623 -215
- data/lib/erubis.rb +2 -2
- data/lib/erubis/context.rb +2 -2
- data/lib/erubis/converter.rb +2 -2
- data/lib/erubis/engine.rb +3 -3
- data/lib/erubis/engine/ec.rb +2 -2
- data/lib/erubis/engine/ejava.rb +2 -2
- data/lib/erubis/engine/ejavascript.rb +2 -2
- data/lib/erubis/engine/enhanced.rb +17 -2
- data/lib/erubis/engine/eperl.rb +2 -2
- data/lib/erubis/engine/ephp.rb +2 -2
- data/lib/erubis/engine/eruby.rb +10 -2
- data/lib/erubis/engine/escheme.rb +2 -2
- data/lib/erubis/engine/optimized.rb +2 -2
- data/lib/erubis/enhancer.rb +134 -25
- data/lib/erubis/error.rb +2 -2
- data/lib/erubis/evaluator.rb +2 -2
- data/lib/erubis/generator.rb +2 -2
- data/lib/erubis/helper.rb +2 -2
- data/lib/erubis/helpers/rails_helper.rb +19 -75
- data/lib/erubis/local-setting.rb +2 -2
- data/lib/erubis/main.rb +63 -36
- data/lib/erubis/tiny.rb +2 -2
- data/test/assert-text-equal.rb +2 -2
- data/test/data/users-guide/Example.ejava +55 -0
- data/test/data/users-guide/array_example.result +9 -0
- data/test/data/users-guide/arraybuffer_example.result +9 -0
- data/test/data/users-guide/bipattern-example.rhtml +4 -0
- data/test/data/users-guide/bipattern_example.result +6 -0
- data/test/data/users-guide/context.rb +6 -0
- data/test/data/users-guide/context.yaml +8 -0
- data/test/data/users-guide/escape_example.result +9 -0
- data/test/data/users-guide/example.ec +27 -0
- data/test/data/users-guide/example.ejs +20 -0
- data/test/data/users-guide/example.eperl +18 -0
- data/test/data/users-guide/example.ephp +18 -0
- data/test/data/users-guide/example.eruby +6 -0
- data/test/data/users-guide/example.escheme +28 -0
- data/test/data/users-guide/example1.eruby +6 -0
- data/test/data/users-guide/example1.rb +16 -0
- data/test/data/users-guide/example1.result +16 -0
- data/test/data/users-guide/example10.rb +4 -0
- data/test/data/users-guide/example10.result +17 -0
- data/test/data/users-guide/example10.xhtml +14 -0
- data/test/data/users-guide/example10_x.result +17 -0
- data/test/data/users-guide/example11.php +20 -0
- data/test/data/users-guide/example11.result +23 -0
- data/test/data/users-guide/example11.rhtml +21 -0
- data/test/data/users-guide/example11_C.result +10 -0
- data/test/data/users-guide/example11_N.result +16 -0
- data/test/data/users-guide/example11_U.result +16 -0
- data/test/data/users-guide/example11_php.result +15 -0
- data/test/data/users-guide/example1_x.result +9 -0
- data/test/data/users-guide/example2.eruby +7 -0
- data/test/data/users-guide/example2.rb +10 -0
- data/test/data/users-guide/example2.result +27 -0
- data/test/data/users-guide/example2_trim.result +10 -0
- data/test/data/users-guide/example2_x.result +10 -0
- data/test/data/users-guide/example3.eruby +6 -0
- data/test/data/users-guide/example3.rb +10 -0
- data/test/data/users-guide/example31.result +22 -0
- data/test/data/users-guide/example32.result +4 -0
- data/test/data/users-guide/example3_e.result +8 -0
- data/test/data/users-guide/example4.eruby +3 -0
- data/test/data/users-guide/example4.rb +11 -0
- data/test/data/users-guide/example4.result +10 -0
- data/test/data/users-guide/example4_x.result +5 -0
- data/test/data/users-guide/example5.eruby +6 -0
- data/test/data/users-guide/example5.rb +16 -0
- data/test/data/users-guide/example5.result +7 -0
- data/test/data/users-guide/example6.rb +12 -0
- data/test/data/users-guide/example6.result +7 -0
- data/test/data/users-guide/example7.eruby +8 -0
- data/test/data/users-guide/example71.result +13 -0
- data/test/data/users-guide/example72.result +13 -0
- data/test/data/users-guide/example8.eruby +6 -0
- data/test/data/users-guide/example8_ruby.result +7 -0
- data/test/data/users-guide/example8_yaml.result +7 -0
- data/test/data/users-guide/example9.eruby +3 -0
- data/test/data/users-guide/example9.rb +8 -0
- data/test/data/users-guide/example9.result +9 -0
- data/test/data/users-guide/example91.result +5 -0
- data/test/data/users-guide/example92.result +4 -0
- data/test/data/users-guide/example_c.result +29 -0
- data/test/data/users-guide/example_java.result +56 -0
- data/test/data/users-guide/example_js.result +22 -0
- data/test/data/users-guide/example_perl.result +20 -0
- data/test/data/users-guide/example_php.result +19 -0
- data/test/data/users-guide/example_scheme.result +30 -0
- data/test/data/users-guide/example_scheme_display.result +29 -0
- data/test/data/users-guide/fasteruby.rb +11 -0
- data/test/data/users-guide/fasteruby.result +38 -0
- data/test/data/users-guide/fasteruby.rhtml +15 -0
- data/test/data/users-guide/headerfooter-example.eruby +9 -0
- data/test/data/users-guide/headerfooter-example2.rb +8 -0
- data/test/data/users-guide/headerfooter-example2.rhtml +10 -0
- data/test/data/users-guide/headerfooter_example.result +11 -0
- data/test/data/users-guide/headerfooter_example2.result +13 -0
- data/test/data/users-guide/interpolation_example.result +9 -0
- data/test/data/users-guide/nocode-example.eruby +14 -0
- data/test/data/users-guide/nocode-php.result +20 -0
- data/test/data/users-guide/nocode_example.result +15 -0
- data/test/data/users-guide/normal-eruby-test.eruby +9 -0
- data/test/data/users-guide/normal_eruby_test.result +11 -0
- data/test/data/users-guide/notext-example.eruby +14 -0
- data/test/data/users-guide/notext-example.php +19 -0
- data/test/data/users-guide/notext-php.result +20 -0
- data/test/data/users-guide/notext_example.result +16 -0
- data/test/data/users-guide/percentline-example.rhtml +4 -0
- data/test/data/users-guide/percentline_example.result +7 -0
- data/test/data/users-guide/printenable_example.result +4 -0
- data/test/data/users-guide/printenabled-example.eruby +3 -0
- data/test/data/users-guide/printenabled-example.rb +8 -0
- data/test/data/users-guide/printstatement_example.result +8 -0
- data/test/data/users-guide/simplify_example.result +9 -0
- data/test/data/users-guide/stdout_exmple.result +9 -0
- data/test/data/users-guide/stringbuffer_example.result +9 -0
- data/test/test-engines.rb +2 -2
- data/test/test-enhancers.rb +569 -0
- data/test/test-erubis.rb +3 -380
- data/test/test-main.rb +39 -15
- data/test/test-users-guide.rb +56 -0
- data/test/test.rb +4 -3
- data/test/testutil.rb +2 -2
- metadata +166 -57
- data/benchmark/erubybench-lib.rb +0 -189
- data/benchmark/erubybench.rb +0 -600
- data/bin/notext +0 -154
- 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="#
|
84
|
-
<a href="#
|
85
|
-
<a href="#
|
86
|
-
<a href="#
|
87
|
-
<a href="#
|
88
|
-
<a href="#
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
83
|
+
<a href="#M000148">add_expr_debug</a>
|
84
|
+
<a href="#M000147">add_expr_escaped</a>
|
85
|
+
<a href="#M000146">add_expr_literal</a>
|
86
|
+
<a href="#M000149">add_postamble</a>
|
87
|
+
<a href="#M000142">add_preamble</a>
|
88
|
+
<a href="#M000145">add_stmt</a>
|
89
|
+
<a href="#M000144">add_text</a>
|
90
|
+
<a href="#M000143">escape_text</a>
|
91
|
+
<a href="#M000141">init_generator</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -117,19 +117,19 @@
|
|
117
117
|
<div id="methods">
|
118
118
|
<h3 class="section-bar">Public Instance methods</h3>
|
119
119
|
|
120
|
-
<div id="method-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000148" class="method-detail">
|
121
|
+
<a name="M000148"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
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('
|
132
|
-
<div class="method-source-code" id="
|
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-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000147" class="method-detail">
|
146
|
+
<a name="M000147"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
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('
|
157
|
-
<div class="method-source-code" id="
|
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-
|
169
|
-
<a name="
|
168
|
+
<div id="method-M000146" class="method-detail">
|
169
|
+
<a name="M000146"></a>
|
170
170
|
|
171
171
|
<div class="method-heading">
|
172
|
-
<a href="#
|
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('
|
180
|
-
<div class="method-source-code" id="
|
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-
|
194
|
-
<a name="
|
193
|
+
<div id="method-M000149" class="method-detail">
|
194
|
+
<a name="M000149"></a>
|
195
195
|
|
196
196
|
<div class="method-heading">
|
197
|
-
<a href="#
|
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('
|
205
|
-
<div class="method-source-code" id="
|
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-
|
219
|
-
<a name="
|
218
|
+
<div id="method-M000142" class="method-detail">
|
219
|
+
<a name="M000142"></a>
|
220
220
|
|
221
221
|
<div class="method-heading">
|
222
|
-
<a href="#
|
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('
|
230
|
-
<div class="method-source-code" id="
|
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-
|
242
|
-
<a name="
|
241
|
+
<div id="method-M000145" class="method-detail">
|
242
|
+
<a name="M000145"></a>
|
243
243
|
|
244
244
|
<div class="method-heading">
|
245
|
-
<a href="#
|
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('
|
253
|
-
<div class="method-source-code" id="
|
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-
|
265
|
-
<a name="
|
264
|
+
<div id="method-M000144" class="method-detail">
|
265
|
+
<a name="M000144"></a>
|
266
266
|
|
267
267
|
<div class="method-heading">
|
268
|
-
<a href="#
|
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('
|
276
|
-
<div class="method-source-code" id="
|
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-
|
297
|
-
<a name="
|
296
|
+
<div id="method-M000143" class="method-detail">
|
297
|
+
<a name="M000143"></a>
|
298
298
|
|
299
299
|
<div class="method-heading">
|
300
|
-
<a href="#
|
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('
|
308
|
-
<div class="method-source-code" id="
|
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-
|
321
|
-
<a name="
|
320
|
+
<div id="method-M000141" class="method-detail">
|
321
|
+
<a name="M000141"></a>
|
322
322
|
|
323
323
|
<div class="method-heading">
|
324
|
-
<a href="#
|
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('
|
332
|
-
<div class="method-source-code" id="
|
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="#
|
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="#
|
83
|
+
<a href="#M000139">add_expr_debug</a>
|
84
|
+
<a href="#M000138">add_expr_escaped</a>
|
85
|
+
<a href="#M000137">add_expr_literal</a>
|
86
|
+
<a href="#M000134">add_indent</a>
|
87
|
+
<a href="#M000140">add_postamble</a>
|
88
|
+
<a href="#M000132">add_preamble</a>
|
89
|
+
<a href="#M000136">add_stmt</a>
|
90
|
+
<a href="#M000135">add_text</a>
|
91
|
+
<a href="#M000133">escape_text</a>
|
92
|
+
<a href="#M000131">init_generator</a>
|
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-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000139" class="method-detail">
|
122
|
+
<a name="M000139"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
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('
|
133
|
-
<div class="method-source-code" id="
|
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-
|
147
|
-
<a name="
|
146
|
+
<div id="method-M000138" class="method-detail">
|
147
|
+
<a name="M000138"></a>
|
148
148
|
|
149
149
|
<div class="method-heading">
|
150
|
-
<a href="#
|
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('
|
158
|
-
<div class="method-source-code" id="
|
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-
|
170
|
-
<a name="
|
169
|
+
<div id="method-M000137" class="method-detail">
|
170
|
+
<a name="M000137"></a>
|
171
171
|
|
172
172
|
<div class="method-heading">
|
173
|
-
<a href="#
|
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('
|
181
|
-
<div class="method-source-code" id="
|
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-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000134" class="method-detail">
|
195
|
+
<a name="M000134"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="#
|
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('
|
206
|
-
<div class="method-source-code" id="
|
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-
|
218
|
-
<a name="
|
217
|
+
<div id="method-M000140" class="method-detail">
|
218
|
+
<a name="M000140"></a>
|
219
219
|
|
220
220
|
<div class="method-heading">
|
221
|
-
<a href="#
|
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('
|
229
|
-
<div class="method-source-code" id="
|
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-
|
242
|
-
<a name="
|
241
|
+
<div id="method-M000132" class="method-detail">
|
242
|
+
<a name="M000132"></a>
|
243
243
|
|
244
244
|
<div class="method-heading">
|
245
|
-
<a href="#
|
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('
|
253
|
-
<div class="method-source-code" id="
|
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-
|
265
|
-
<a name="
|
264
|
+
<div id="method-M000136" class="method-detail">
|
265
|
+
<a name="M000136"></a>
|
266
266
|
|
267
267
|
<div class="method-heading">
|
268
|
-
<a href="#
|
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('
|
276
|
-
<div class="method-source-code" id="
|
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-
|
288
|
-
<a name="
|
287
|
+
<div id="method-M000135" class="method-detail">
|
288
|
+
<a name="M000135"></a>
|
289
289
|
|
290
290
|
<div class="method-heading">
|
291
|
-
<a href="#
|
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('
|
299
|
-
<div class="method-source-code" id="
|
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-
|
320
|
-
<a name="
|
319
|
+
<div id="method-M000133" class="method-detail">
|
320
|
+
<a name="M000133"></a>
|
321
321
|
|
322
322
|
<div class="method-heading">
|
323
|
-
<a href="#
|
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('
|
331
|
-
<div class="method-source-code" id="
|
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-
|
344
|
-
<a name="
|
343
|
+
<div id="method-M000131" class="method-detail">
|
344
|
+
<a name="M000131"></a>
|
345
345
|
|
346
346
|
<div class="method-heading">
|
347
|
-
<a href="#
|
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('
|
355
|
-
<div class="method-source-code" id="
|
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>={})
|