erubis 2.3.1 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES → CHANGES.txt} +373 -3
- data/MIT-LICENSE +1 -1
- data/README.txt +6 -5
- data/benchmark/bench.rb +18 -11
- data/bin/erubis +3 -4
- data/contrib/erubis +3462 -5
- data/contrib/inline-require +54 -28
- data/doc/docstyle.css +25 -4
- data/doc/users-guide.html +814 -110
- data/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +209 -0
- data/doc-api/classes/ActionView.html +105 -0
- data/doc-api/classes/Erubis/ArrayBufferEnhancer.html +14 -14
- data/doc-api/classes/Erubis/ArrayEnhancer.html +16 -16
- data/doc-api/classes/Erubis/Basic/Converter.html +36 -31
- data/doc-api/classes/Erubis/BiPatternEnhancer.html +16 -13
- data/doc-api/classes/Erubis/CGenerator.html +70 -70
- data/doc-api/classes/Erubis/Context.html +49 -49
- data/doc-api/classes/Erubis/Converter.html +30 -29
- data/doc-api/classes/Erubis/CppGenerator.html +382 -0
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +7 -7
- data/doc-api/classes/Erubis/Ecpp.html +126 -0
- data/doc-api/classes/Erubis/Engine.html +46 -43
- data/doc-api/classes/Erubis/ErboutEnhancer.html +16 -16
- data/doc-api/classes/Erubis/EscapeEnhancer.html +7 -7
- data/doc-api/classes/Erubis/EscapedEcpp.html +120 -0
- data/doc-api/classes/Erubis/Evaluator.html +22 -22
- data/doc-api/classes/Erubis/Generator.html +70 -70
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +18 -15
- data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
- data/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +213 -0
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +103 -54
- data/doc-api/classes/Erubis/Helpers.html +6 -1
- data/doc-api/classes/Erubis/InterpolationEnhancer.html +42 -41
- data/doc-api/classes/Erubis/JavaGenerator.html +69 -69
- data/doc-api/classes/Erubis/JavascriptGenerator.html +79 -74
- data/doc-api/classes/Erubis/Main.html +49 -48
- data/doc-api/classes/Erubis/NoCodeEnhancer.html +35 -35
- data/doc-api/classes/Erubis/NoTextEnhancer.html +7 -7
- data/doc-api/classes/Erubis/OptimizedEruby.html +7 -7
- data/doc-api/classes/Erubis/OptimizedGenerator.html +84 -84
- data/doc-api/classes/Erubis/OptimizedXmlEruby.html +7 -7
- data/doc-api/classes/Erubis/PI/Converter.html +23 -22
- data/doc-api/classes/Erubis/PI/Ec.html +7 -7
- data/doc-api/classes/Erubis/PI/Ecpp.html +166 -0
- data/doc-api/classes/Erubis/PI/Ejava.html +7 -7
- data/doc-api/classes/Erubis/PI/Ejavascript.html +7 -7
- data/doc-api/classes/Erubis/PI/Eperl.html +7 -7
- data/doc-api/classes/Erubis/PI/Ephp.html +7 -7
- data/doc-api/classes/Erubis/PI/Eruby.html +6 -6
- data/doc-api/classes/Erubis/PI/Escheme.html +7 -7
- data/doc-api/classes/Erubis/PI/TinyEruby.html +28 -27
- data/doc-api/classes/Erubis/PI.html +1 -0
- data/doc-api/classes/Erubis/PercentLineEnhancer.html +18 -29
- data/doc-api/classes/Erubis/PerlGenerator.html +63 -63
- data/doc-api/classes/Erubis/PhpGenerator.html +63 -63
- data/doc-api/classes/Erubis/PrefixedLineEnhancer.html +210 -0
- data/doc-api/classes/Erubis/PrefixedLineEruby.html +120 -0
- data/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
- data/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
- data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +23 -23
- data/doc-api/classes/Erubis/PrintOutEnhancer.html +38 -38
- data/doc-api/classes/Erubis/RubyEvaluator.html +59 -22
- data/doc-api/classes/Erubis/RubyGenerator.html +53 -52
- data/doc-api/classes/Erubis/SchemeGenerator.html +70 -70
- data/doc-api/classes/Erubis/SimplifyEnhancer.html +10 -9
- data/doc-api/classes/Erubis/StdoutEnhancer.html +3 -3
- data/doc-api/classes/Erubis/StringBufferEnhancer.html +16 -16
- data/doc-api/classes/Erubis/TinyEruby.html +33 -33
- data/doc-api/classes/Erubis/XmlHelper.html +80 -15
- data/doc-api/classes/Erubis.html +25 -1
- data/doc-api/classes/Kernel.html +155 -0
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +8 -8
- data/doc-api/files/erubis/context_rb.html +2 -2
- data/doc-api/files/erubis/converter_rb.html +3 -3
- data/doc-api/files/erubis/engine/ec_rb.html +2 -2
- data/doc-api/files/erubis/engine/ecpp_rb.html +115 -0
- 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 +3 -3
- data/doc-api/files/erubis/helper_rb.html +2 -2
- data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +3 -2
- data/doc-api/files/erubis/local-setting_rb.html +2 -2
- data/doc-api/files/erubis/main_rb.html +4 -2
- data/doc-api/files/erubis/preprocessing_rb.html +114 -0
- data/doc-api/files/erubis/tiny_rb.html +2 -2
- data/doc-api/files/erubis/util_rb.html +107 -0
- data/doc-api/files/erubis_rb.html +2 -2
- data/doc-api/fr_class_index.html +13 -0
- data/doc-api/fr_file_index.html +4 -0
- data/doc-api/fr_method_index.html +237 -179
- data/examples/basic/Makefile +7 -2
- data/examples/basic/example.ecpp +33 -0
- data/lib/erubis/context.rb +2 -3
- data/lib/erubis/converter.rb +17 -11
- data/lib/erubis/engine/ec.rb +2 -3
- data/lib/erubis/engine/ecpp.rb +113 -0
- data/lib/erubis/engine/ejava.rb +9 -10
- data/lib/erubis/engine/ejavascript.rb +14 -9
- data/lib/erubis/engine/enhanced.rb +7 -3
- data/lib/erubis/engine/eperl.rb +2 -3
- data/lib/erubis/engine/ephp.rb +2 -3
- data/lib/erubis/engine/eruby.rb +8 -8
- data/lib/erubis/engine/escheme.rb +2 -3
- data/lib/erubis/engine/optimized.rb +2 -3
- data/lib/erubis/engine.rb +13 -11
- data/lib/erubis/enhancer.rb +101 -34
- data/lib/erubis/error.rb +2 -3
- data/lib/erubis/evaluator.rb +27 -10
- data/lib/erubis/generator.rb +3 -4
- data/lib/erubis/helper.rb +14 -3
- data/lib/erubis/helpers/rails_form_helper.rb +197 -0
- data/lib/erubis/helpers/rails_helper.rb +219 -77
- data/lib/erubis/local-setting.rb +2 -3
- data/lib/erubis/main.rb +85 -60
- data/lib/erubis/preprocessing.rb +58 -0
- data/lib/erubis/tiny.rb +9 -9
- data/lib/erubis/util.rb +22 -0
- data/lib/erubis.rb +4 -4
- data/test/assert-text-equal.rb +2 -3
- data/test/data/users-guide/bufvar-example.rb +10 -0
- data/test/data/users-guide/bufvar-example.result +17 -0
- data/test/data/users-guide/def_method.rb +14 -0
- data/test/data/users-guide/def_method.result +3 -0
- data/test/data/users-guide/example.ecpp +30 -0
- data/test/data/users-guide/example1.rb +1 -0
- data/test/data/users-guide/example_c.result +22 -19
- data/test/data/users-guide/fasteruby-example.rb +8 -0
- data/test/data/users-guide/fasteruby-example.result +18 -0
- data/test/data/users-guide/main_program1.rb +8 -0
- data/test/data/users-guide/main_program1.result +6 -0
- data/test/data/users-guide/main_program2.rb +8 -0
- data/test/data/users-guide/main_program2.result +6 -0
- data/test/data/users-guide/percentline-example.rhtml +3 -1
- data/test/data/users-guide/percentline_example.result +5 -3
- data/test/data/users-guide/prefixedline-example.rb +9 -0
- data/test/data/users-guide/prefixedline-example.rhtml +6 -0
- data/test/data/users-guide/prefixedline_example.result +9 -0
- data/test/data/users-guide/tail_260.result +4 -0
- data/test/data/users-guide/tailnewline.rhtml +3 -0
- data/test/data/users-guide/template1.rhtml +4 -0
- data/test/data/users-guide/template2.rhtml +4 -0
- data/test/test-engines.rb +88 -5
- data/test/test-enhancers.rb +83 -6
- data/test/test-erubis.rb +115 -11
- data/test/test-index-cgi.rb +191 -0
- data/test/test-main.rb +143 -31
- data/test/test-users-guide.rb +20 -3
- data/test/test.rb +18 -3
- data/test/testutil.rb +44 -8
- metadata +104 -67
- data/contrib/action_view_base_rb.patch +0 -23
metadata
CHANGED
@@ -1,39 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.2
|
3
|
-
specification_version: 1
|
4
2
|
name: erubis
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
rubyforge_project:
|
14
|
-
description: "Erubis is an implementation of eRuby and has the following features: * Very fast, almost three times faster than ERB and about 10% faster than eruby. * Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript) * Auto escaping support * Auto trimming spaces around '<% %>' * Embedded pattern changeable (default '<% %>') * Enable to handle Processing Instructions (PI) as embedded pattern (ex. '<?rb ... ?>') * Context object available and easy to combine eRuby template with YAML datafile * Print statement available * Easy to extend and customize in subclass * Ruby on Rails support"
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: false
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 2.7.0
|
25
11
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
12
|
authors:
|
30
13
|
- makoto kuwata
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-04-02 00:00:00 +09:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: " Erubis is an implementation of eRuby and has the following features:\n\n * Very fast, almost three times faster than ERB and about 10% faster than eruby.\n * Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript)\n * Auto escaping support\n * Auto trimming spaces around '<% %>'\n * Embedded pattern changeable (default '<% %>')\n * Enable to handle Processing Instructions (PI) as embedded pattern (ex. '<?rb ... ?>')\n * Context object available and easy to combine eRuby template with YAML datafile\n * Print statement available\n * Easy to extend and customize in subclass\n * Ruby on Rails support\n"
|
23
|
+
email: kwa(at)kuwata-lab.com
|
24
|
+
executables:
|
25
|
+
- erubis
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
31
30
|
files:
|
32
|
-
- lib/erubis
|
33
31
|
- lib/erubis/context.rb
|
34
32
|
- lib/erubis/converter.rb
|
35
|
-
- lib/erubis/engine
|
36
33
|
- lib/erubis/engine/ec.rb
|
34
|
+
- lib/erubis/engine/ecpp.rb
|
37
35
|
- lib/erubis/engine/ejava.rb
|
38
36
|
- lib/erubis/engine/ejavascript.rb
|
39
37
|
- lib/erubis/engine/enhanced.rb
|
@@ -48,15 +46,17 @@ files:
|
|
48
46
|
- lib/erubis/evaluator.rb
|
49
47
|
- lib/erubis/generator.rb
|
50
48
|
- lib/erubis/helper.rb
|
51
|
-
- lib/erubis/helpers
|
49
|
+
- lib/erubis/helpers/rails_form_helper.rb
|
52
50
|
- lib/erubis/helpers/rails_helper.rb
|
53
51
|
- lib/erubis/local-setting.rb
|
54
52
|
- lib/erubis/main.rb
|
53
|
+
- lib/erubis/preprocessing.rb
|
55
54
|
- lib/erubis/tiny.rb
|
55
|
+
- lib/erubis/util.rb
|
56
56
|
- lib/erubis.rb
|
57
57
|
- bin/erubis
|
58
|
-
- examples/basic
|
59
58
|
- examples/basic/example.ec
|
59
|
+
- examples/basic/example.ecpp
|
60
60
|
- examples/basic/example.ejava
|
61
61
|
- examples/basic/example.ejs
|
62
62
|
- examples/basic/example.eperl
|
@@ -64,7 +64,6 @@ files:
|
|
64
64
|
- examples/basic/example.eruby
|
65
65
|
- examples/basic/example.escheme
|
66
66
|
- examples/basic/Makefile
|
67
|
-
- examples/pi
|
68
67
|
- examples/pi/example.ec
|
69
68
|
- examples/pi/example.ejava
|
70
69
|
- examples/pi/example.ejs
|
@@ -74,22 +73,19 @@ files:
|
|
74
73
|
- examples/pi/example.escheme
|
75
74
|
- examples/pi/Makefile
|
76
75
|
- test/assert-text-equal.rb
|
77
|
-
- test/test-engines.rb
|
78
|
-
- test/test-enhancers.rb
|
79
|
-
- test/test-erubis.rb
|
80
|
-
- test/test-main.rb
|
81
|
-
- test/test-users-guide.rb
|
82
|
-
- test/test.rb
|
83
|
-
- test/testutil.rb
|
84
|
-
- test/data/users-guide
|
85
76
|
- test/data/users-guide/array_example.result
|
86
77
|
- test/data/users-guide/arraybuffer_example.result
|
87
78
|
- test/data/users-guide/bipattern-example.rhtml
|
88
79
|
- test/data/users-guide/bipattern_example.result
|
80
|
+
- test/data/users-guide/bufvar-example.rb
|
81
|
+
- test/data/users-guide/bufvar-example.result
|
89
82
|
- test/data/users-guide/context.rb
|
90
83
|
- test/data/users-guide/context.yaml
|
84
|
+
- test/data/users-guide/def_method.rb
|
85
|
+
- test/data/users-guide/def_method.result
|
91
86
|
- test/data/users-guide/escape_example.result
|
92
87
|
- test/data/users-guide/example.ec
|
88
|
+
- test/data/users-guide/example.ecpp
|
93
89
|
- test/data/users-guide/Example.ejava
|
94
90
|
- test/data/users-guide/example.ejs
|
95
91
|
- test/data/users-guide/example.eperl
|
@@ -148,6 +144,8 @@ files:
|
|
148
144
|
- test/data/users-guide/example_php.result
|
149
145
|
- test/data/users-guide/example_scheme.result
|
150
146
|
- test/data/users-guide/example_scheme_display.result
|
147
|
+
- test/data/users-guide/fasteruby-example.rb
|
148
|
+
- test/data/users-guide/fasteruby-example.result
|
151
149
|
- test/data/users-guide/fasteruby.rb
|
152
150
|
- test/data/users-guide/fasteruby.result
|
153
151
|
- test/data/users-guide/fasteruby.rhtml
|
@@ -157,6 +155,10 @@ files:
|
|
157
155
|
- test/data/users-guide/headerfooter_example.result
|
158
156
|
- test/data/users-guide/headerfooter_example2.result
|
159
157
|
- test/data/users-guide/interpolation_example.result
|
158
|
+
- test/data/users-guide/main_program1.rb
|
159
|
+
- test/data/users-guide/main_program1.result
|
160
|
+
- test/data/users-guide/main_program2.rb
|
161
|
+
- test/data/users-guide/main_program2.result
|
160
162
|
- test/data/users-guide/nocode-example.eruby
|
161
163
|
- test/data/users-guide/nocode-php.result
|
162
164
|
- test/data/users-guide/nocode_example.result
|
@@ -168,6 +170,9 @@ files:
|
|
168
170
|
- test/data/users-guide/notext_example.result
|
169
171
|
- test/data/users-guide/percentline-example.rhtml
|
170
172
|
- test/data/users-guide/percentline_example.result
|
173
|
+
- test/data/users-guide/prefixedline-example.rb
|
174
|
+
- test/data/users-guide/prefixedline-example.rhtml
|
175
|
+
- test/data/users-guide/prefixedline_example.result
|
171
176
|
- test/data/users-guide/printenable_example.result
|
172
177
|
- test/data/users-guide/printenabled-example.eruby
|
173
178
|
- test/data/users-guide/printenabled-example.rb
|
@@ -176,33 +181,42 @@ files:
|
|
176
181
|
- test/data/users-guide/stderr.log
|
177
182
|
- test/data/users-guide/stdout_exmple.result
|
178
183
|
- test/data/users-guide/stringbuffer_example.result
|
184
|
+
- test/data/users-guide/tail_260.result
|
185
|
+
- test/data/users-guide/tailnewline.rhtml
|
186
|
+
- test/data/users-guide/template1.rhtml
|
187
|
+
- test/data/users-guide/template2.rhtml
|
188
|
+
- test/test-engines.rb
|
189
|
+
- test/test-enhancers.rb
|
190
|
+
- test/test-erubis.rb
|
191
|
+
- test/test-index-cgi.rb
|
192
|
+
- test/test-main.rb
|
193
|
+
- test/test-users-guide.rb
|
194
|
+
- test/test.rb
|
195
|
+
- test/testutil.rb
|
179
196
|
- doc/docstyle.css
|
180
197
|
- doc/users-guide.html
|
181
198
|
- README.txt
|
182
|
-
- CHANGES
|
199
|
+
- CHANGES.txt
|
183
200
|
- MIT-LICENSE
|
184
201
|
- setup.rb
|
185
|
-
- contrib/action_view_base_rb.patch
|
186
202
|
- contrib/erubis
|
187
203
|
- contrib/erubis-run.rb
|
188
204
|
- contrib/inline-require
|
189
205
|
- benchmark/bench.rb
|
190
206
|
- benchmark/bench_context.yaml
|
191
207
|
- benchmark/Makefile
|
192
|
-
- benchmark/templates
|
193
208
|
- benchmark/templates/_footer.html
|
194
209
|
- benchmark/templates/_header.html
|
195
210
|
- benchmark/templates/bench_erb.rhtml
|
196
211
|
- benchmark/templates/bench_erubis.rhtml
|
197
212
|
- benchmark/templates/bench_eruby.rhtml
|
198
|
-
- doc-api/classes
|
213
|
+
- doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html
|
214
|
+
- doc-api/classes/ActionView.html
|
199
215
|
- doc-api/classes/ERB.html
|
200
|
-
- doc-api/classes/Erubis
|
201
216
|
- doc-api/classes/Erubis/ArrayBufferEnhancer.html
|
202
217
|
- doc-api/classes/Erubis/ArrayBufferEruby.html
|
203
218
|
- doc-api/classes/Erubis/ArrayEnhancer.html
|
204
219
|
- doc-api/classes/Erubis/ArrayEruby.html
|
205
|
-
- doc-api/classes/Erubis/Basic
|
206
220
|
- doc-api/classes/Erubis/Basic/Converter.html
|
207
221
|
- doc-api/classes/Erubis/Basic/Engine.html
|
208
222
|
- doc-api/classes/Erubis/Basic.html
|
@@ -212,9 +226,11 @@ files:
|
|
212
226
|
- doc-api/classes/Erubis/CommandOptionError.html
|
213
227
|
- doc-api/classes/Erubis/Context.html
|
214
228
|
- doc-api/classes/Erubis/Converter.html
|
229
|
+
- doc-api/classes/Erubis/CppGenerator.html
|
215
230
|
- doc-api/classes/Erubis/DeleteIndentEnhancer.html
|
216
231
|
- doc-api/classes/Erubis/DeleteIndentEruby.html
|
217
232
|
- doc-api/classes/Erubis/Ec.html
|
233
|
+
- doc-api/classes/Erubis/Ecpp.html
|
218
234
|
- doc-api/classes/Erubis/Ejava.html
|
219
235
|
- doc-api/classes/Erubis/Ejavascript.html
|
220
236
|
- doc-api/classes/Erubis/Engine.html
|
@@ -225,6 +241,7 @@ files:
|
|
225
241
|
- doc-api/classes/Erubis/ErubisError.html
|
226
242
|
- doc-api/classes/Erubis/Eruby.html
|
227
243
|
- doc-api/classes/Erubis/EscapedEc.html
|
244
|
+
- doc-api/classes/Erubis/EscapedEcpp.html
|
228
245
|
- doc-api/classes/Erubis/EscapedEjava.html
|
229
246
|
- doc-api/classes/Erubis/EscapedEjavascript.html
|
230
247
|
- doc-api/classes/Erubis/EscapedEperl.html
|
@@ -238,7 +255,8 @@ files:
|
|
238
255
|
- doc-api/classes/Erubis/Generator.html
|
239
256
|
- doc-api/classes/Erubis/HeaderFooterEnhancer.html
|
240
257
|
- doc-api/classes/Erubis/HeaderFooterEruby.html
|
241
|
-
- doc-api/classes/Erubis/Helpers
|
258
|
+
- doc-api/classes/Erubis/Helpers/RailsFormHelper.html
|
259
|
+
- doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html
|
242
260
|
- doc-api/classes/Erubis/Helpers/RailsHelper.html
|
243
261
|
- doc-api/classes/Erubis/Helpers.html
|
244
262
|
- doc-api/classes/Erubis/InterpolationEnhancer.html
|
@@ -258,9 +276,9 @@ files:
|
|
258
276
|
- doc-api/classes/Erubis/PercentLineEruby.html
|
259
277
|
- doc-api/classes/Erubis/PerlGenerator.html
|
260
278
|
- doc-api/classes/Erubis/PhpGenerator.html
|
261
|
-
- doc-api/classes/Erubis/PI
|
262
279
|
- doc-api/classes/Erubis/PI/Converter.html
|
263
280
|
- doc-api/classes/Erubis/PI/Ec.html
|
281
|
+
- doc-api/classes/Erubis/PI/Ecpp.html
|
264
282
|
- doc-api/classes/Erubis/PI/Ejava.html
|
265
283
|
- doc-api/classes/Erubis/PI/Ejavascript.html
|
266
284
|
- doc-api/classes/Erubis/PI/Engine.html
|
@@ -270,6 +288,10 @@ files:
|
|
270
288
|
- doc-api/classes/Erubis/PI/Escheme.html
|
271
289
|
- doc-api/classes/Erubis/PI/TinyEruby.html
|
272
290
|
- doc-api/classes/Erubis/PI.html
|
291
|
+
- doc-api/classes/Erubis/PrefixedLineEnhancer.html
|
292
|
+
- doc-api/classes/Erubis/PrefixedLineEruby.html
|
293
|
+
- doc-api/classes/Erubis/PreprocessingEruby.html
|
294
|
+
- doc-api/classes/Erubis/PreprocessingHelper.html
|
273
295
|
- doc-api/classes/Erubis/PrintEnabledEnhancer.html
|
274
296
|
- doc-api/classes/Erubis/PrintEnabledEruby.html
|
275
297
|
- doc-api/classes/Erubis/PrintOutEnhancer.html
|
@@ -290,13 +312,12 @@ files:
|
|
290
312
|
- doc-api/classes/Erubis/XmlEruby.html
|
291
313
|
- doc-api/classes/Erubis/XmlHelper.html
|
292
314
|
- doc-api/classes/Erubis.html
|
315
|
+
- doc-api/classes/Kernel.html
|
293
316
|
- doc-api/created.rid
|
294
|
-
- doc-api/files
|
295
|
-
- doc-api/files/erubis
|
296
317
|
- doc-api/files/erubis/context_rb.html
|
297
318
|
- doc-api/files/erubis/converter_rb.html
|
298
|
-
- doc-api/files/erubis/engine
|
299
319
|
- doc-api/files/erubis/engine/ec_rb.html
|
320
|
+
- doc-api/files/erubis/engine/ecpp_rb.html
|
300
321
|
- doc-api/files/erubis/engine/ejava_rb.html
|
301
322
|
- doc-api/files/erubis/engine/ejavascript_rb.html
|
302
323
|
- doc-api/files/erubis/engine/enhanced_rb.html
|
@@ -311,11 +332,13 @@ files:
|
|
311
332
|
- doc-api/files/erubis/evaluator_rb.html
|
312
333
|
- doc-api/files/erubis/generator_rb.html
|
313
334
|
- doc-api/files/erubis/helper_rb.html
|
314
|
-
- doc-api/files/erubis/helpers
|
335
|
+
- doc-api/files/erubis/helpers/rails_form_helper_rb.html
|
315
336
|
- doc-api/files/erubis/helpers/rails_helper_rb.html
|
316
337
|
- doc-api/files/erubis/local-setting_rb.html
|
317
338
|
- doc-api/files/erubis/main_rb.html
|
339
|
+
- doc-api/files/erubis/preprocessing_rb.html
|
318
340
|
- doc-api/files/erubis/tiny_rb.html
|
341
|
+
- doc-api/files/erubis/util_rb.html
|
319
342
|
- doc-api/files/erubis_rb.html
|
320
343
|
- doc-api/files/README_txt.html
|
321
344
|
- doc-api/fr_class_index.html
|
@@ -323,25 +346,39 @@ files:
|
|
323
346
|
- doc-api/fr_method_index.html
|
324
347
|
- doc-api/index.html
|
325
348
|
- doc-api/rdoc-style.css
|
326
|
-
|
327
|
-
-
|
328
|
-
|
349
|
+
has_rdoc: true
|
350
|
+
homepage: http://www.kuwata-lab.com/erubis/
|
351
|
+
licenses: []
|
329
352
|
|
330
|
-
|
331
|
-
|
332
|
-
executables:
|
333
|
-
- erubis
|
334
|
-
extensions: []
|
353
|
+
post_install_message:
|
354
|
+
rdoc_options: []
|
335
355
|
|
356
|
+
require_paths:
|
357
|
+
- lib
|
358
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
359
|
+
none: false
|
360
|
+
requirements:
|
361
|
+
- - ">="
|
362
|
+
- !ruby/object:Gem::Version
|
363
|
+
hash: 3
|
364
|
+
segments:
|
365
|
+
- 0
|
366
|
+
version: "0"
|
367
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
368
|
+
none: false
|
369
|
+
requirements:
|
370
|
+
- - ">="
|
371
|
+
- !ruby/object:Gem::Version
|
372
|
+
hash: 3
|
373
|
+
segments:
|
374
|
+
- 0
|
375
|
+
version: "0"
|
336
376
|
requirements: []
|
337
377
|
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
- !ruby/object:Gem::Version
|
346
|
-
version: 1.0.0
|
347
|
-
version:
|
378
|
+
rubyforge_project: erubis
|
379
|
+
rubygems_version: 1.6.0
|
380
|
+
signing_key:
|
381
|
+
specification_version: 3
|
382
|
+
summary: a fast and extensible eRuby implementation which supports multi-language
|
383
|
+
test_files:
|
384
|
+
- test/test.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
--- action_view/base.rb (original)
|
2
|
-
+++ action_view/base.rb (working copy)
|
3
|
-
@@ -445,6 +445,11 @@
|
4
|
-
end
|
5
|
-
end
|
6
|
-
|
7
|
-
+ # convert template into ruby code
|
8
|
-
+ def convert_template_into_ruby_code(template)
|
9
|
-
+ ERB.new(template, nil, @@erb_trim_mode).src
|
10
|
-
+ end
|
11
|
-
+
|
12
|
-
# Create source code for given template
|
13
|
-
def create_template_source(extension, template, render_symbol, locals)
|
14
|
-
if template_requires_setup?(extension)
|
15
|
-
@@ -458,7 +463,7 @@
|
16
|
-
"update_page do |page|\n#{template}\nend"
|
17
|
-
end
|
18
|
-
else
|
19
|
-
- body = ERB.new(template, nil, @@erb_trim_mode).src
|
20
|
-
+ body = convert_template_into_ruby_code(template)
|
21
|
-
end
|
22
|
-
|
23
|
-
@@template_args[render_symbol] ||= {}
|