erubis 2.4.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES → CHANGES.txt} +59 -3
- data/MIT-LICENSE +1 -1
- data/README.txt +5 -5
- data/benchmark/bench.rb +2 -2
- data/bin/erubis +2 -2
- data/contrib/erubis +46 -46
- data/contrib/inline-require +2 -2
- data/doc-api/classes/Erubis.html +5 -1
- data/doc-api/classes/Erubis/ArrayEnhancer.html +12 -12
- data/doc-api/classes/Erubis/BiPatternEnhancer.html +12 -12
- data/doc-api/classes/Erubis/CGenerator.html +60 -60
- data/doc-api/classes/Erubis/Context.html +42 -42
- data/doc-api/classes/Erubis/DeleteIndentEnhancer.html +6 -6
- data/doc-api/classes/Erubis/Engine.html +30 -30
- data/doc-api/classes/Erubis/ErboutEnhancer.html +12 -12
- data/doc-api/classes/Erubis/EscapeEnhancer.html +6 -6
- data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +12 -12
- data/doc-api/classes/Erubis/Helpers.html +6 -1
- data/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +762 -0
- data/doc-api/classes/Erubis/Helpers/RailsHelper.html +12 -18
- data/doc-api/classes/Erubis/Helpers/RailsHelper/PreprocessingEruby.html +2 -2
- data/doc-api/classes/Erubis/JavaGenerator.html +54 -54
- data/doc-api/classes/Erubis/JavascriptGenerator.html +60 -60
- data/doc-api/classes/Erubis/Main.html +19 -19
- data/doc-api/classes/Erubis/NoTextEnhancer.html +6 -6
- data/doc-api/classes/Erubis/OptimizedEruby.html +6 -6
- data/doc-api/classes/Erubis/OptimizedGenerator.html +72 -72
- data/doc-api/classes/Erubis/OptimizedXmlEruby.html +6 -6
- data/doc-api/classes/Erubis/PercentLineEnhancer.html +6 -6
- 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 +18 -18
- data/doc-api/classes/Erubis/StringBufferEnhancer.html +12 -12
- data/doc-api/classes/Erubis/TinyEruby.html +24 -24
- data/doc-api/classes/Erubis/XmlHelper.html +30 -30
- data/doc-api/created.rid +1 -1
- data/doc-api/files/README_txt.html +6 -7
- data/doc-api/files/erubis/context_rb.html +1 -1
- data/doc-api/files/erubis/converter_rb.html +1 -1
- data/doc-api/files/erubis/engine/ec_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejava_rb.html +1 -1
- data/doc-api/files/erubis/engine/ejavascript_rb.html +1 -1
- data/doc-api/files/erubis/engine/enhanced_rb.html +1 -1
- data/doc-api/files/erubis/engine/eperl_rb.html +1 -1
- data/doc-api/files/erubis/engine/ephp_rb.html +1 -1
- data/doc-api/files/erubis/engine/eruby_rb.html +1 -1
- data/doc-api/files/erubis/engine/escheme_rb.html +1 -1
- data/doc-api/files/erubis/engine/optimized_rb.html +1 -1
- data/doc-api/files/erubis/engine_rb.html +1 -1
- data/doc-api/files/erubis/enhancer_rb.html +1 -1
- data/doc-api/files/erubis/error_rb.html +1 -1
- data/doc-api/files/erubis/evaluator_rb.html +1 -1
- data/doc-api/files/erubis/generator_rb.html +1 -1
- data/doc-api/files/erubis/helper_rb.html +1 -1
- data/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/doc-api/files/erubis/helpers/rails_helper_rb.html +2 -2
- data/doc-api/files/erubis/local-setting_rb.html +1 -1
- data/doc-api/files/erubis/main_rb.html +1 -1
- data/doc-api/files/erubis/tiny_rb.html +1 -1
- data/doc-api/files/erubis_rb.html +2 -2
- data/doc-api/fr_class_index.html +1 -0
- data/doc-api/fr_file_index.html +1 -0
- data/doc-api/fr_method_index.html +162 -138
- data/doc/users-guide.html +157 -62
- data/lib/erubis.rb +4 -4
- data/lib/erubis/context.rb +2 -2
- data/lib/erubis/converter.rb +2 -2
- data/lib/erubis/engine.rb +2 -2
- 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 +2 -2
- data/lib/erubis/engine/eperl.rb +2 -2
- data/lib/erubis/engine/ephp.rb +2 -2
- data/lib/erubis/engine/eruby.rb +2 -2
- data/lib/erubis/engine/escheme.rb +2 -2
- data/lib/erubis/engine/optimized.rb +2 -2
- data/lib/erubis/enhancer.rb +2 -2
- 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_form_helper.rb +190 -0
- data/lib/erubis/helpers/rails_helper.rb +63 -28
- data/lib/erubis/local-setting.rb +2 -2
- data/lib/erubis/main.rb +2 -2
- data/lib/erubis/tiny.rb +2 -2
- data/test/assert-text-equal.rb +2 -2
- data/test/test-engines.rb +2 -2
- data/test/test-enhancers.rb +2 -2
- data/test/test-erubis.rb +2 -2
- data/test/test-main.rb +2 -2
- data/test/test-users-guide.rb +2 -2
- data/test/test.rb +2 -2
- data/test/testutil.rb +2 -2
- metadata +53 -44
- data/test/data/users-guide/stderr.log +0 -3
data/{CHANGES → CHANGES.txt}
RENAMED
@@ -1,6 +1,62 @@
|
|
1
|
-
# $Rev:
|
2
|
-
# $Release: 2.
|
3
|
-
# copyright(c) 2006-
|
1
|
+
# $Rev: 99 $
|
2
|
+
# $Release: 2.5.0 $
|
3
|
+
# copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
4
|
+
|
5
|
+
|
6
|
+
- release: 2.5.0
|
7
|
+
date: 2008-01-30
|
8
|
+
enhancements:
|
9
|
+
|
10
|
+
- |
|
11
|
+
Ruby on Rails 2.0 support.
|
12
|
+
If you are using preprocessing, notice that _?('foo.id') will be NG
|
13
|
+
because it contains period ('.') character.
|
14
|
+
|
15
|
+
--------------------
|
16
|
+
<!-- NG in Rails 2.0 -->
|
17
|
+
[%= link_to 'Edit', edit_user_path(_?('@user.id')) %]
|
18
|
+
[%= link_to 'Show', @user %]
|
19
|
+
[%= link_to 'Delete', @user, :confirm=>'OK?', :method=>:delete %]
|
20
|
+
|
21
|
+
<!-- OK in Rails 2.0 -->
|
22
|
+
<%= user_id = @user.id %>
|
23
|
+
[%= link_to 'Edit', edit_user_path(_?('user_id')) %]
|
24
|
+
[%= link_to 'Show', :action=>'show', :id=>_?('user_id') %]
|
25
|
+
[%= link_to 'Delete', {:action=>'destroy', :id=>_?('user_id')},
|
26
|
+
{:confirm=>'OK?', :method=>:delete} %]
|
27
|
+
--------------------
|
28
|
+
|
29
|
+
- |
|
30
|
+
(experimental)
|
31
|
+
Rails form helper methods for preprocessing are added.
|
32
|
+
These helper methos are available with preprocessing.
|
33
|
+
|
34
|
+
ex. _form.rhtml
|
35
|
+
--------------------
|
36
|
+
Name: <%= text_field :user, :name %>
|
37
|
+
Name: [%= pp_text_field :user, :name %]
|
38
|
+
--------------------
|
39
|
+
|
40
|
+
preprocessed:
|
41
|
+
--------------------
|
42
|
+
Name: <%= text_field :user, :name %>
|
43
|
+
Name: <input id="stock_name" name="stock[name]" size="30" type="text" value="<%=h @stock.name%>" />
|
44
|
+
--------------------
|
45
|
+
|
46
|
+
Ruby code:
|
47
|
+
--------------------
|
48
|
+
_buf << '
|
49
|
+
Name: '; _buf << ( text_field :stock, :name ).to_s; _buf << '
|
50
|
+
Name: <input id="stock_name" name="stock[name]" size="30" type="text" value="'; _buf << (h @stock.name).to_s; _buf << '" />
|
51
|
+
';
|
52
|
+
--------------------
|
53
|
+
|
54
|
+
This shows that text_filed() is called every time when rendering,
|
55
|
+
but pp_text_filed() is called only once when loading template,
|
56
|
+
so pp_text_field() with prepocessing is much faster than text_field().
|
57
|
+
|
58
|
+
See User's guide for details.
|
59
|
+
http://www.kuwata-lab.com/erubis/users-guide.05.html#rails-formhelpers
|
4
60
|
|
5
61
|
#
|
6
62
|
- release: 2.4.1
|
data/MIT-LICENSE
CHANGED
data/README.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
= README
|
2
2
|
|
3
|
-
release:: 2.
|
4
|
-
copyright:: copyright(c) 2006-
|
3
|
+
release:: 2.5.0
|
4
|
+
copyright:: copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
5
5
|
|
6
6
|
|
7
7
|
|
@@ -27,9 +27,9 @@ See doc/users-guide.html for details.
|
|
27
27
|
|
28
28
|
== Installation
|
29
29
|
|
30
|
-
* If you have installed RubyGems, just type <tt>gem install
|
30
|
+
* If you have installed RubyGems, just type <tt>gem install erubis</tt>.
|
31
31
|
|
32
|
-
$ sudo gem install
|
32
|
+
$ sudo gem install erubis
|
33
33
|
|
34
34
|
* Else install abstract[http://rubyforge.org/projects/abstract/] at first,
|
35
35
|
and download erubis_X.X.X.tar.bz2 and install it by setup.rb.
|
@@ -62,7 +62,7 @@ and restart web server.
|
|
62
62
|
require 'erubis/helpers/rails_helper'
|
63
63
|
#Erubis::Helpers::RailsHelper.engine_class = Erubis::Eruby
|
64
64
|
#Erubis::Helpers::RailsHelper.init_properties = {}
|
65
|
-
#Erubis::Helpers::RailsHelper.show_src =
|
65
|
+
#Erubis::Helpers::RailsHelper.show_src = nil
|
66
66
|
|
67
67
|
If Erubis::Helpers::RailsHelper.show_src is ture, Erubis prints converted Ruby code
|
68
68
|
into log file ('log/development.log' or so). It is useful for debug.
|
data/benchmark/bench.rb
CHANGED
data/bin/erubis
CHANGED
data/contrib/erubis
CHANGED
@@ -2,23 +2,23 @@
|
|
2
2
|
|
3
3
|
###
|
4
4
|
### $Rev: 77 $
|
5
|
-
### $Release: 2.
|
6
|
-
### copyright(c) 2006-
|
5
|
+
### $Release: 2.5.0 $
|
6
|
+
### copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
7
7
|
###
|
8
8
|
|
9
9
|
#--begin of require 'erubis/main'
|
10
10
|
###
|
11
11
|
### $Rev: 91 $
|
12
|
-
### $Release: 2.
|
13
|
-
### copyright(c) 2006-
|
12
|
+
### $Release: 2.5.0 $
|
13
|
+
### copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
14
14
|
###
|
15
15
|
|
16
16
|
require 'yaml'
|
17
17
|
#--begin of require 'erubis'
|
18
18
|
##
|
19
|
-
## $Rev:
|
20
|
-
## 2.
|
21
|
-
## copyright(c) 2006-
|
19
|
+
## $Rev: 99 $
|
20
|
+
## $Release: 2.5.0 $
|
21
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
22
22
|
##
|
23
23
|
|
24
24
|
##
|
@@ -65,22 +65,22 @@ require 'yaml'
|
|
65
65
|
|
66
66
|
|
67
67
|
module Erubis
|
68
|
-
VERSION = ('$Release: 2.
|
68
|
+
VERSION = ('$Release: 2.5.0 $' =~ /([.\d]+)/) && $1
|
69
69
|
end
|
70
70
|
|
71
71
|
#--begin of require 'erubis/engine'
|
72
72
|
##
|
73
73
|
## $Rev: 77 $
|
74
|
-
## $Release: 2.
|
75
|
-
## copyright(c) 2006-
|
74
|
+
## $Release: 2.5.0 $
|
75
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
76
76
|
##
|
77
77
|
|
78
78
|
|
79
79
|
#--begin of require 'erubis/generator'
|
80
80
|
##
|
81
81
|
## $Rev: 77 $
|
82
|
-
## $Release: 2.
|
83
|
-
## copyright(c) 2006-
|
82
|
+
## $Release: 2.5.0 $
|
83
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
84
84
|
##
|
85
85
|
|
86
86
|
#--begin of require 'abstract'
|
@@ -243,8 +243,8 @@ end
|
|
243
243
|
#--begin of require 'erubis/converter'
|
244
244
|
##
|
245
245
|
## $Rev: 89 $
|
246
|
-
## $Release: 2.
|
247
|
-
## copyright(c) 2006-
|
246
|
+
## $Release: 2.5.0 $
|
247
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
248
248
|
##
|
249
249
|
|
250
250
|
#--already included require 'abstract'
|
@@ -597,15 +597,15 @@ end
|
|
597
597
|
#--begin of require 'erubis/evaluator'
|
598
598
|
##
|
599
599
|
## $Rev: 94 $
|
600
|
-
## $Release: 2.
|
601
|
-
## copyright(c) 2006-
|
600
|
+
## $Release: 2.5.0 $
|
601
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
602
602
|
##
|
603
603
|
|
604
604
|
#--begin of require 'erubis/error'
|
605
605
|
##
|
606
606
|
## $Rev: 77 $
|
607
|
-
## $Release: 2.
|
608
|
-
## copyright(c) 2006-
|
607
|
+
## $Release: 2.5.0 $
|
608
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
609
609
|
##
|
610
610
|
|
611
611
|
module Erubis
|
@@ -630,8 +630,8 @@ end
|
|
630
630
|
#--begin of require 'erubis/context'
|
631
631
|
##
|
632
632
|
## $Rev: 77 $
|
633
|
-
## $Release: 2.
|
634
|
-
## copyright(c) 2006-
|
633
|
+
## $Release: 2.5.0 $
|
634
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
635
635
|
##
|
636
636
|
|
637
637
|
|
@@ -907,8 +907,8 @@ end
|
|
907
907
|
#--begin of require 'erubis/helper'
|
908
908
|
##
|
909
909
|
## $Rev: 89 $
|
910
|
-
## $Release: 2.
|
911
|
-
## copyright(c) 2006-
|
910
|
+
## $Release: 2.5.0 $
|
911
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
912
912
|
##
|
913
913
|
|
914
914
|
|
@@ -957,8 +957,8 @@ end
|
|
957
957
|
#--begin of require 'erubis/enhancer'
|
958
958
|
##
|
959
959
|
## $Rev: 93 $
|
960
|
-
## $Release: 2.
|
961
|
-
## copyright(c) 2006-
|
960
|
+
## $Release: 2.5.0 $
|
961
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
962
962
|
##
|
963
963
|
|
964
964
|
|
@@ -1631,8 +1631,8 @@ end
|
|
1631
1631
|
#--begin of require 'erubis/engine/eruby'
|
1632
1632
|
##
|
1633
1633
|
## $Rev: 77 $
|
1634
|
-
## $Release: 2.
|
1635
|
-
## copyright(c) 2006-
|
1634
|
+
## $Release: 2.5.0 $
|
1635
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
1636
1636
|
##
|
1637
1637
|
|
1638
1638
|
#--already included require 'erubis/engine'
|
@@ -1767,8 +1767,8 @@ end
|
|
1767
1767
|
#--begin of require 'erubis/local-setting'
|
1768
1768
|
##
|
1769
1769
|
## $Rev: 77 $
|
1770
|
-
## $Release: 2.
|
1771
|
-
## copyright(c) 2006-
|
1770
|
+
## $Release: 2.5.0 $
|
1771
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
1772
1772
|
##
|
1773
1773
|
|
1774
1774
|
##
|
@@ -1780,8 +1780,8 @@ end
|
|
1780
1780
|
#--begin of require 'erubis/tiny'
|
1781
1781
|
##
|
1782
1782
|
## $Rev: 77 $
|
1783
|
-
## $Release: 2.
|
1784
|
-
## copyright(c) 2006-
|
1783
|
+
## $Release: 2.5.0 $
|
1784
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
1785
1785
|
##
|
1786
1786
|
|
1787
1787
|
module Erubis
|
@@ -1926,8 +1926,8 @@ end
|
|
1926
1926
|
#--begin of require 'erubis/engine/enhanced'
|
1927
1927
|
##
|
1928
1928
|
## $Rev: 77 $
|
1929
|
-
## $Release: 2.
|
1930
|
-
## copyright(c) 2006-
|
1929
|
+
## $Release: 2.5.0 $
|
1930
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
1931
1931
|
##
|
1932
1932
|
|
1933
1933
|
#--already included require 'erubis/enhancer'
|
@@ -2050,8 +2050,8 @@ end
|
|
2050
2050
|
#--begin of require 'erubis/engine/optimized'
|
2051
2051
|
##
|
2052
2052
|
## $Rev: 77 $
|
2053
|
-
## $Release: 2.
|
2054
|
-
## copyright(c) 2006-
|
2053
|
+
## $Release: 2.5.0 $
|
2054
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
2055
2055
|
##
|
2056
2056
|
|
2057
2057
|
|
@@ -2181,8 +2181,8 @@ end
|
|
2181
2181
|
#--begin of require 'erubis/engine/ephp'
|
2182
2182
|
##
|
2183
2183
|
## $Rev: 77 $
|
2184
|
-
## $Release: 2.
|
2185
|
-
## copyright(c) 2006-
|
2184
|
+
## $Release: 2.5.0 $
|
2185
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
2186
2186
|
##
|
2187
2187
|
|
2188
2188
|
#--already included require 'erubis/engine'
|
@@ -2283,8 +2283,8 @@ end
|
|
2283
2283
|
#--begin of require 'erubis/engine/ec'
|
2284
2284
|
##
|
2285
2285
|
## $Rev: 77 $
|
2286
|
-
## $Release: 2.
|
2287
|
-
## copyright(c) 2006-
|
2286
|
+
## $Release: 2.5.0 $
|
2287
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
2288
2288
|
##
|
2289
2289
|
|
2290
2290
|
#--already included require 'erubis/engine'
|
@@ -2403,8 +2403,8 @@ end
|
|
2403
2403
|
#--begin of require 'erubis/engine/ejava'
|
2404
2404
|
##
|
2405
2405
|
## $Rev: 77 $
|
2406
|
-
## $Release: 2.
|
2407
|
-
## copyright(c) 2006-
|
2406
|
+
## $Release: 2.5.0 $
|
2407
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
2408
2408
|
##
|
2409
2409
|
|
2410
2410
|
#--already included require 'erubis/engine'
|
@@ -2516,8 +2516,8 @@ end
|
|
2516
2516
|
#--begin of require 'erubis/engine/escheme'
|
2517
2517
|
##
|
2518
2518
|
## $Rev: 77 $
|
2519
|
-
## $Release: 2.
|
2520
|
-
## copyright(c) 2006-
|
2519
|
+
## $Release: 2.5.0 $
|
2520
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
2521
2521
|
##
|
2522
2522
|
|
2523
2523
|
#--already included require 'erubis/engine'
|
@@ -2633,8 +2633,8 @@ end
|
|
2633
2633
|
#--begin of require 'erubis/engine/eperl'
|
2634
2634
|
##
|
2635
2635
|
## $Rev: 77 $
|
2636
|
-
## $Release: 2.
|
2637
|
-
## copyright(c) 2006-
|
2636
|
+
## $Release: 2.5.0 $
|
2637
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
2638
2638
|
##
|
2639
2639
|
|
2640
2640
|
#--already included require 'erubis/engine'
|
@@ -2731,8 +2731,8 @@ end
|
|
2731
2731
|
#--begin of require 'erubis/engine/ejavascript'
|
2732
2732
|
##
|
2733
2733
|
## $Rev: 95 $
|
2734
|
-
## $Release: 2.
|
2735
|
-
## copyright(c) 2006-
|
2734
|
+
## $Release: 2.5.0 $
|
2735
|
+
## copyright(c) 2006-2008 kuwata-lab.com all rights reserved.
|
2736
2736
|
##
|
2737
2737
|
|
2738
2738
|
#--already included require 'erubis/engine'
|
data/contrib/inline-require
CHANGED
data/doc-api/classes/Erubis.html
CHANGED
@@ -122,6 +122,10 @@
|
|
122
122
|
<a href="../files/erubis/helper_rb.html">
|
123
123
|
erubis/helper.rb
|
124
124
|
</a>
|
125
|
+
<br />
|
126
|
+
<a href="../files/erubis/helpers/rails_form_helper_rb.html">
|
127
|
+
erubis/helpers/rails_form_helper.rb
|
128
|
+
</a>
|
125
129
|
<br />
|
126
130
|
<a href="../files/erubis/helpers/rails_helper_rb.html">
|
127
131
|
erubis/helpers/rails_helper.rb
|
@@ -318,7 +322,7 @@ Class <a href="Erubis/XmlEruby.html" class="link">Erubis::XmlEruby</a><br />
|
|
318
322
|
<tr class="top-aligned-row context-row">
|
319
323
|
<td class="context-item-name">VERSION</td>
|
320
324
|
<td>=</td>
|
321
|
-
<td class="context-item-value">('$Release: 2.
|
325
|
+
<td class="context-item-value">('$Release: 2.5.0 $' =~ /([.\d]+)/) && $1</td>
|
322
326
|
</tr>
|
323
327
|
</table>
|
324
328
|
</div>
|
@@ -89,8 +89,8 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
89
89
|
<h3 class="section-bar">Methods</h3>
|
90
90
|
|
91
91
|
<div class="name-list">
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
92
|
+
<a href="#M000186">add_postamble</a>
|
93
|
+
<a href="#M000185">add_preamble</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -112,19 +112,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
112
112
|
<div id="methods">
|
113
113
|
<h3 class="section-bar">Public Instance methods</h3>
|
114
114
|
|
115
|
-
<div id="method-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000186" class="method-detail">
|
116
|
+
<a name="M000186"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
119
|
+
<a href="#M000186" class="method-signature">
|
120
120
|
<span class="method-name">add_postamble</span><span class="method-args">(src)</span>
|
121
121
|
</a>
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div class="method-description">
|
125
125
|
<p><a class="source-toggle" href="#"
|
126
|
-
onclick="toggleCode('
|
127
|
-
<div class="method-source-code" id="
|
126
|
+
onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
|
127
|
+
<div class="method-source-code" id="M000186-source">
|
128
128
|
<pre>
|
129
129
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 169</span>
|
130
130
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_postamble</span>(<span class="ruby-identifier">src</span>)
|
@@ -136,19 +136,19 @@ this is only for <a href="Eruby.html">Eruby</a>.
|
|
136
136
|
</div>
|
137
137
|
</div>
|
138
138
|
|
139
|
-
<div id="method-
|
140
|
-
<a name="
|
139
|
+
<div id="method-M000185" class="method-detail">
|
140
|
+
<a name="M000185"></a>
|
141
141
|
|
142
142
|
<div class="method-heading">
|
143
|
-
<a href="#
|
143
|
+
<a href="#M000185" class="method-signature">
|
144
144
|
<span class="method-name">add_preamble</span><span class="method-args">(src)</span>
|
145
145
|
</a>
|
146
146
|
</div>
|
147
147
|
|
148
148
|
<div class="method-description">
|
149
149
|
<p><a class="source-toggle" href="#"
|
150
|
-
onclick="toggleCode('
|
151
|
-
<div class="method-source-code" id="
|
150
|
+
onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000185-source">
|
152
152
|
<pre>
|
153
153
|
<span class="ruby-comment cmt"># File erubis/enhancer.rb, line 165</span>
|
154
154
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_preamble</span>(<span class="ruby-identifier">src</span>)
|