erubis 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. data/ChangeLog +150 -2
  2. data/LGPL +504 -0
  3. data/README.txt +14 -8
  4. data/benchmark/erubybench.rb +1 -1
  5. data/benchmark/erubybench.rhtml +3 -3
  6. data/bin/erubis +1 -1
  7. data/bin/notext +154 -0
  8. data/contrib/erubis +1036 -374
  9. data/contrib/inline-require +5 -3
  10. data/doc-api/classes/Erubis.html +43 -1
  11. data/doc-api/classes/Erubis/ArrayBufferEnhancer.html +14 -14
  12. data/doc-api/classes/Erubis/ArrayEnhancer.html +14 -14
  13. data/doc-api/classes/Erubis/Basic.html +112 -0
  14. data/doc-api/classes/Erubis/Basic/Converter.html +318 -0
  15. data/doc-api/classes/Erubis/Basic/Engine.html +130 -0
  16. data/doc-api/classes/Erubis/BiPatternEnhancer.html +14 -14
  17. data/doc-api/classes/Erubis/CGenerator.html +386 -0
  18. data/doc-api/classes/Erubis/Context.html +31 -32
  19. data/doc-api/classes/Erubis/Converter.html +231 -0
  20. data/doc-api/classes/Erubis/Ec.html +9 -283
  21. data/doc-api/classes/Erubis/Ejava.html +9 -274
  22. data/doc-api/classes/Erubis/Ejavascript.html +9 -298
  23. data/doc-api/classes/Erubis/Engine.html +68 -508
  24. data/doc-api/classes/Erubis/Eperl.html +9 -259
  25. data/doc-api/classes/Erubis/Ephp.html +9 -239
  26. data/doc-api/classes/Erubis/ErubisError.html +2 -2
  27. data/doc-api/classes/Erubis/Eruby.html +4 -187
  28. data/doc-api/classes/Erubis/EscapeEnhancer.html +9 -11
  29. data/doc-api/classes/Erubis/Escheme.html +9 -272
  30. data/doc-api/classes/Erubis/Evaluator.html +212 -0
  31. data/doc-api/classes/Erubis/Generator.html +410 -0
  32. data/doc-api/classes/Erubis/HeaderFooterEnhancer.html +16 -16
  33. data/doc-api/classes/Erubis/Helper.html +112 -0
  34. data/doc-api/classes/Erubis/Helper/CachedRailsTemplate.html +198 -0
  35. data/doc-api/classes/Erubis/Helper/RailsTemplate.html +366 -0
  36. data/doc-api/classes/Erubis/JavaGenerator.html +359 -0
  37. data/doc-api/classes/Erubis/JavascriptGenerator.html +381 -0
  38. data/doc-api/classes/Erubis/Main.html +27 -25
  39. data/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
  40. data/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
  41. data/doc-api/classes/Erubis/NoTextEnhancer.html +8 -8
  42. data/doc-api/classes/Erubis/NotSupportedError.html +119 -0
  43. data/doc-api/classes/Erubis/OptimizedEruby.html +22 -304
  44. data/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
  45. data/doc-api/classes/Erubis/OptimizedXmlEruby.html +7 -7
  46. data/doc-api/classes/Erubis/PI.html +124 -0
  47. data/doc-api/classes/Erubis/PI/Converter.html +318 -0
  48. data/doc-api/classes/Erubis/PI/Ec.html +166 -0
  49. data/doc-api/classes/Erubis/PI/Ejava.html +166 -0
  50. data/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
  51. data/doc-api/classes/Erubis/PI/Engine.html +122 -0
  52. data/doc-api/classes/Erubis/PI/Eperl.html +166 -0
  53. data/doc-api/classes/Erubis/PI/Ephp.html +166 -0
  54. data/doc-api/classes/Erubis/PI/Eruby.html +155 -0
  55. data/doc-api/classes/Erubis/PI/Escheme.html +166 -0
  56. data/doc-api/classes/Erubis/PI/TinyEruby.html +305 -0
  57. data/doc-api/classes/Erubis/PercentLineEnhancer.html +7 -7
  58. data/doc-api/classes/Erubis/PerlGenerator.html +344 -0
  59. data/doc-api/classes/Erubis/PhpGenerator.html +350 -0
  60. data/doc-api/classes/Erubis/PrintEnabledEnhancer.html +24 -24
  61. data/doc-api/classes/Erubis/PrintOutEnhancer.html +35 -35
  62. data/doc-api/classes/Erubis/RubyEvaluator.html +190 -0
  63. data/doc-api/classes/Erubis/RubyGenerator.html +327 -0
  64. data/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
  65. data/doc-api/classes/Erubis/SimplifyEnhancer.html +17 -13
  66. data/doc-api/classes/Erubis/StdoutEnhancer.html +14 -14
  67. data/doc-api/classes/Erubis/StringBufferEnhancer.html +14 -14
  68. data/doc-api/classes/Erubis/TinyEruby.html +45 -40
  69. data/doc-api/classes/Erubis/XmlHelper.html +14 -14
  70. data/doc-api/created.rid +1 -1
  71. data/doc-api/files/__/README_txt.html +27 -9
  72. data/doc-api/files/erubis/context_rb.html +107 -0
  73. data/doc-api/files/erubis/converter_rb.html +114 -0
  74. data/doc-api/files/erubis/engine/ec_rb.html +2 -2
  75. data/doc-api/files/erubis/engine/ejava_rb.html +2 -2
  76. data/doc-api/files/erubis/engine/ejavascript_rb.html +2 -2
  77. data/doc-api/files/erubis/engine/enhanced_rb.html +2 -2
  78. data/doc-api/files/erubis/engine/eperl_rb.html +2 -2
  79. data/doc-api/files/erubis/engine/ephp_rb.html +2 -2
  80. data/doc-api/files/erubis/engine/eruby_rb.html +3 -2
  81. data/doc-api/files/erubis/engine/escheme_rb.html +2 -2
  82. data/doc-api/files/erubis/engine/optimized_rb.html +2 -2
  83. data/doc-api/files/erubis/engine_rb.html +6 -3
  84. data/doc-api/files/erubis/enhancer_rb.html +2 -9
  85. data/doc-api/files/erubis/error_rb.html +107 -0
  86. data/doc-api/files/erubis/evaluator_rb.html +115 -0
  87. data/doc-api/files/erubis/generator_rb.html +114 -0
  88. data/doc-api/files/erubis/helper/rails_rb.html +140 -0
  89. data/doc-api/files/erubis/helper_rb.html +1 -1
  90. data/doc-api/files/erubis/local-setting_rb.html +1 -1
  91. data/doc-api/files/erubis/main_rb.html +2 -2
  92. data/doc-api/files/erubis/tiny_rb.html +2 -2
  93. data/doc-api/files/erubis_rb.html +2 -2
  94. data/doc-api/fr_class_index.html +32 -0
  95. data/doc-api/fr_file_index.html +6 -0
  96. data/doc-api/fr_method_index.html +178 -136
  97. data/doc/users-guide.html +538 -199
  98. data/examples/{Makefile → basic/Makefile} +11 -11
  99. data/examples/basic/example.ec +42 -0
  100. data/examples/{example.ejava → basic/example.ejava} +5 -1
  101. data/examples/{example.ejavascript → basic/example.ejs} +0 -0
  102. data/examples/{example.eperl → basic/example.eperl} +2 -2
  103. data/examples/{example.ephp → basic/example.ephp} +0 -0
  104. data/examples/{example.eruby → basic/example.eruby} +0 -0
  105. data/examples/{example.escheme → basic/example.escheme} +0 -0
  106. data/examples/pi/Makefile +54 -0
  107. data/examples/pi/example.ec +42 -0
  108. data/examples/pi/example.ejava +45 -0
  109. data/examples/pi/example.ejs +16 -0
  110. data/examples/pi/example.eperl +16 -0
  111. data/examples/pi/example.ephp +17 -0
  112. data/examples/pi/example.eruby +15 -0
  113. data/examples/pi/example.escheme +26 -0
  114. data/lib/erubis.rb +15 -8
  115. data/lib/erubis/context.rb +54 -0
  116. data/lib/erubis/converter.rb +307 -0
  117. data/lib/erubis/engine.rb +57 -227
  118. data/lib/erubis/engine/ec.rb +31 -20
  119. data/lib/erubis/engine/ejava.rb +33 -21
  120. data/lib/erubis/engine/ejavascript.rb +30 -18
  121. data/lib/erubis/engine/enhanced.rb +7 -2
  122. data/lib/erubis/engine/eperl.rb +33 -19
  123. data/lib/erubis/engine/ephp.rb +32 -14
  124. data/lib/erubis/engine/eruby.rb +34 -7
  125. data/lib/erubis/engine/escheme.rb +34 -15
  126. data/lib/erubis/engine/optimized.rb +25 -11
  127. data/lib/erubis/enhancer.rb +53 -19
  128. data/lib/erubis/error.rb +24 -0
  129. data/lib/erubis/evaluator.rb +71 -0
  130. data/lib/erubis/generator.rb +83 -0
  131. data/lib/erubis/helper.rb +1 -1
  132. data/lib/erubis/helper/rails.rb +159 -0
  133. data/lib/erubis/local-setting.rb +1 -1
  134. data/lib/erubis/main.rb +87 -46
  135. data/lib/erubis/tiny.rb +81 -7
  136. data/test/assert-text-equal.rb +1 -1
  137. data/test/test-engines.rb +8 -9
  138. data/test/test-erubis.rb +196 -18
  139. data/test/{test-bin.rb → test-main.rb} +123 -21
  140. data/test/test-notext.rb +27 -0
  141. data/test/test.rb +5 -3
  142. data/test/testutil.rb +25 -36
  143. metadata +75 -13
  144. data/COPYING +0 -340
  145. data/examples/example.ec +0 -24
@@ -1,29 +1,23 @@
1
1
  ##
2
- ## $Rev: 21 $
3
- ## $Release: 2.0.1 $
4
- ## $Date: 2006-05-20 08:57:39 +0900 (Sat, 20 May 2006) $
2
+ ## $Rev: 37 $
3
+ ## $Release: 2.1.0 $
4
+ ## $Date: 2006-09-19 05:28:57 +0900 (Tue, 19 Sep 2006) $
5
5
  ##
6
6
 
7
7
  require "#{File.dirname(__FILE__)}/test.rb"
8
8
 
9
- bindir = File.dirname(TESTDIR) + '/bin'
10
- $script = bindir + '/erubis'
11
- if test(?f, 'bin/erubis')
12
- $script = 'bin/erubis'
13
- elsif test(?f, '../bin/erubis')
14
- $script = '../bin/erubis'
15
- end
16
-
17
-
18
- require 'test/unit'
19
- require 'assert-text-equal'
20
- require 'yaml'
21
9
  require 'tempfile'
22
-
23
- require 'erubis'
24
10
  require 'erubis/main'
25
11
 
26
12
 
13
+ $script = File.dirname(TESTDIR) + '/bin/erubis'
14
+ #if test(?f, 'bin/erubis')
15
+ # $script = 'bin/erubis'
16
+ #elsif test(?f, '../bin/erubis')
17
+ # $script = '../bin/erubis'
18
+ #end
19
+
20
+
27
21
  class StringWriter < String
28
22
  def write(arg)
29
23
  self << arg
@@ -46,9 +40,9 @@ END
46
40
  # SRC = <<'END'
47
41
  #_buf = ''; _buf << "list:\n"
48
42
  # list = ['<aaa>', 'b&b', '"ccc"']
49
- # for item in list
43
+ # for item in list
50
44
  #_buf << " - "; _buf << ( item ).to_s; _buf << "\n"
51
- # end
45
+ # end
52
46
  #_buf << "user: "; _buf << ( defined?(user) ? user : "(none)" ).to_s; _buf << "\n"
53
47
  #_buf
54
48
  #END
@@ -81,12 +75,68 @@ user: (none)
81
75
  END
82
76
 
83
77
 
78
+ PI_INPUT = <<'END'
79
+ <ul>
80
+ <?rb @list = ['<aaa>', 'b&b', '"ccc"']
81
+ for item in @list ?>
82
+ <li>@{item}@ / @!{item}@
83
+ <%= item %> / <%== item %></li>
84
+ <?rb end ?>
85
+ <ul>
86
+ END
87
+
88
+ PI_SRC = <<'END'
89
+ _buf = []; _buf << '<ul>
90
+ '; @list = ['<aaa>', 'b&b', '"ccc"']
91
+ for item in @list
92
+ _buf << ' <li>'; _buf << Erubis::XmlHelper.escape_xml(item); _buf << ' / '; _buf << (item).to_s; _buf << '
93
+ '; _buf << ( item ).to_s; _buf << ' / '; _buf << Erubis::XmlHelper.escape_xml( item ); _buf << '</li>
94
+ '; end
95
+ _buf << '<ul>
96
+ ';
97
+ _buf.join
98
+ END
99
+
100
+ PI_ESCAPED_SRC = <<'END'
101
+ _buf = []; _buf << '<ul>
102
+ '; @list = ['<aaa>', 'b&b', '"ccc"']
103
+ for item in @list
104
+ _buf << ' <li>'; _buf << (item).to_s; _buf << ' / '; _buf << Erubis::XmlHelper.escape_xml(item); _buf << '
105
+ '; _buf << Erubis::XmlHelper.escape_xml( item ); _buf << ' / '; _buf << ( item ).to_s; _buf << '</li>
106
+ '; end
107
+ _buf << '<ul>
108
+ ';
109
+ _buf.join
110
+ END
111
+
112
+ PI_OUTPUT = <<'END'
113
+ <ul>
114
+ <li>&lt;aaa&gt; / <aaa>
115
+ <aaa> / &lt;aaa&gt;</li>
116
+ <li>b&amp;b / b&b
117
+ b&b / b&amp;b</li>
118
+ <li>&quot;ccc&quot; / "ccc"
119
+ "ccc" / &quot;ccc&quot;</li>
120
+ <ul>
121
+ END
122
+
123
+ PI_ESCAPED_OUTPUT = <<'END'
124
+ <ul>
125
+ <li><aaa> / &lt;aaa&gt;
126
+ &lt;aaa&gt; / <aaa></li>
127
+ <li>b&b / b&amp;b
128
+ b&amp;b / b&b</li>
129
+ <li>"ccc" / &quot;ccc&quot;
130
+ &quot;ccc&quot; / "ccc"</li>
131
+ <ul>
132
+ END
133
+
84
134
  def _test()
85
135
  if $target
86
136
  name = (caller()[0] =~ /in `test_(.*?)'/) && $1
87
137
  return unless name == $target
88
138
  end
89
- if @filename == nil
139
+ if @filename.nil?
90
140
  method = (caller[0] =~ /in `(.*)'/) && $1 #'
91
141
  @filename = "tmp.#{method}"
92
142
  end
@@ -115,7 +165,7 @@ END
115
165
 
116
166
  def test_version # -v
117
167
  @options = '-v'
118
- @expected = (("$Release: 2.0.1 $" =~ /[.\d]+/) && $&) + "\n"
168
+ @expected = (("$Release: 2.1.0 $" =~ /[.\d]+/) && $&) + "\n"
119
169
  @filename = false
120
170
  _test()
121
171
  end
@@ -403,4 +453,56 @@ END
403
453
  end
404
454
 
405
455
 
456
+ def test_pi1 # --pi -x
457
+ @input = PI_INPUT
458
+ @expected = PI_SRC
459
+ @options = '-x --pi'
460
+ _test()
461
+ end
462
+
463
+ def test_pi2 # --pi -x --escape=false
464
+ @input = PI_INPUT
465
+ @expected = PI_ESCAPED_SRC
466
+ @options = '-x --pi --escape=false'
467
+ _test()
468
+ end
469
+
470
+ def test_pi3 # --pi
471
+ @input = PI_INPUT
472
+ @expected = PI_OUTPUT
473
+ @options = '--pi'
474
+ _test()
475
+ end
476
+
477
+ def test_pi4 # --pi --escape=false
478
+ @input = PI_INPUT
479
+ @expected = PI_ESCAPED_OUTPUT
480
+ @options = '--pi --escape=false'
481
+ _test()
482
+ end
483
+
484
+ def test_pi5 # --pi=ruby -x
485
+ @input = PI_INPUT.gsub(/<\?rb/, '<?ruby')
486
+ @expected = PI_SRC
487
+ @options = '--pi=ruby -x'
488
+ _test()
489
+ end
490
+
491
+ def test_pi6 # --pi -xl java
492
+ @input = <<'END'
493
+ <?java for (int i = 0; i < arr.length; i++) { ?>
494
+ - @{arr[i]}@ / @!{arr[i]}@
495
+ <?java } ?>
496
+ END
497
+ @expected = <<'END'
498
+ StringBuffer _buf = new StringBuffer(); for (int i = 0; i < arr.length; i++) {
499
+ _buf.append(" - "); _buf.append(escape(arr[i])); _buf.append(" / "); _buf.append(arr[i]); _buf.append("\n");
500
+ }
501
+ return _buf.toString();
502
+ END
503
+ @options = '--pi -xl java'
504
+ _test()
505
+ end
506
+
507
+
406
508
  end
@@ -0,0 +1,27 @@
1
+ ##
2
+ ## $Rev: 31 $
3
+ ## $Release: 2.1.0 $
4
+ ## copyright(c) 2006 kuwata-lab all rights reserved.
5
+ ##
6
+
7
+ require File.dirname(__FILE__) + '/test'
8
+
9
+
10
+ class NoTextTest < Test::Unit::TestCase
11
+
12
+ filename = __FILE__.sub(/\.\w+$/, '.yaml')
13
+ testdata_list = load_yaml_datafile(filename)
14
+ define_testmethods(testdata_list)
15
+
16
+ def _test
17
+ File.open(@filename, 'w') { |f| f.write(@input) }
18
+ begin
19
+ result = `notext #{@options} #{@filename}`
20
+ expected = @output.gsub(/^\./, '')
21
+ assert_text_equal(expected, result)
22
+ ensure
23
+ File.unlink @filename if test(?f, @filename)
24
+ end
25
+ end
26
+
27
+ end
@@ -1,6 +1,6 @@
1
1
  ##
2
- ## $Rev$
3
- ## $Release: 2.0.1 $
2
+ ## $Rev: 30 $
3
+ ## $Release: 2.1.0 $
4
4
  ## copyright(c) 2006 kuwata-lab all rights reserved.
5
5
  ##
6
6
 
@@ -18,10 +18,12 @@ require 'test/unit'
18
18
  require 'assert-text-equal'
19
19
  require 'yaml'
20
20
  require 'testutil'
21
+ require 'erubis'
21
22
 
22
23
 
23
24
  if $0 == __FILE__
24
25
  require "#{TESTDIR}/test-erubis.rb"
25
26
  require "#{TESTDIR}/test-engines.rb"
26
- require "#{TESTDIR}/test-bin.rb"
27
+ require "#{TESTDIR}/test-main.rb"
28
+ require "#{TESTDIR}/test-notext.rb"
27
29
  end
@@ -1,70 +1,60 @@
1
1
  ###
2
- ### $Rev: 103 $
3
- ### $Release: 2.0.1 $
2
+ ### $Rev: 30 $
3
+ ### $Release: 2.1.0 $
4
4
  ### copyright(c) 2006 kuwata-lab all rights reserved.
5
5
  ###
6
6
 
7
7
  require 'yaml'
8
8
 
9
+ require 'test/unit/testcase'
9
10
 
10
- module TestEnhancer
11
11
 
12
+ class Test::Unit::TestCase
12
13
 
13
- module_function
14
14
 
15
-
16
- def load_testdata(filename, options={}, &block)
17
- _load_yaml(filename, :doc, options, &block)
18
- end
19
-
20
-
21
- def load_yaml_document(filename, options={}, &block)
22
- _load_yaml(filename, :doc, options, &block)
23
- end
24
-
25
-
26
- def load_yaml_documents(filename, options={}, &block)
27
- _load_yaml(filename, :docs, options, &block)
28
- end
29
-
30
-
31
- def _load_yaml(filename, type, options={}, &block) # :nodoc:
15
+ def self.load_yaml_datafile(filename, options={}, &block) # :nodoc:
16
+ # read datafile
32
17
  s = File.read(filename)
33
18
  if filename =~ /\.rb$/
34
19
  s =~ /^__END__$/ or raise "*** error: __END__ is not found in '#{filename}'."
35
20
  s = $'
36
21
  end
22
+ # untabify
37
23
  unless options[:tabify] == false
38
24
  s = s.inject('') do |sb, line|
39
25
  sb << line.gsub(/([^\t]{8})|([^\t]*)\t/n) { [$+].pack("A8") }
40
26
  end
41
27
  end
42
- #
43
- case type
44
- when :docs
45
- hash_list = []
46
- YAML.load_documents(s) do |hash| hash_list << hash end
47
- when :doc
48
- hash_list = YAML.load(s)
49
- else
50
- raise "*** internal error"
28
+ # load yaml document
29
+ testdata_list = []
30
+ YAML.load_documents(s) do |ydoc|
31
+ if ydoc.is_a?(Hash)
32
+ testdata_list << ydoc
33
+ elsif ydoc.is_a?(Array)
34
+ ydoc.each do |hash|
35
+ raise "testdata should be a mapping." unless hash.is_a?(Hash)
36
+ testdata_list << hash
37
+ end
38
+ else
39
+ raise "testdata should be a mapping."
40
+ end
51
41
  end
52
- #
42
+ # data check
53
43
  identkey = options[:identkey] || 'name'
54
44
  table = {}
55
- hash_list.each do |hash|
45
+ testdata_list.each do |hash|
56
46
  ident = hash[identkey]
57
- ident or raise "*** #{identkey} is not found."
47
+ ident or raise "*** key '#{identkey}' is required but not found."
58
48
  table[ident] and raise "*** #{identkey} '#{ident}' is duplicated."
59
49
  table[ident] = hash
60
50
  yield(hash) if block
61
51
  end
62
52
  #
63
- return hash_list
53
+ return testdata_list
64
54
  end
65
55
 
66
56
 
67
- def define_testmethods(testdata_list, options={}, &block)
57
+ def self.define_testmethods(testdata_list, options={}, &block)
68
58
  identkey = options[:identkey] || 'name'
69
59
  testmethod = options[:testmethod] || '_test'
70
60
  testdata_list.each do |hash|
@@ -72,7 +62,6 @@ module TestEnhancer
72
62
  ident = hash[identkey]
73
63
  s = "def test_#{ident}\n"
74
64
  hash.each do |key, val|
75
- code = " @#{key} = #{val.inspect}\n"
76
65
  s << " @#{key} = #{val.inspect}\n"
77
66
  end
78
67
  s << " #{testmethod}\n"
metadata CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: erubis
5
5
  version: !ruby/object:Gem::Version
6
- version: 2.0.1
7
- date: 2006-05-21 00:00:00 +09:00
6
+ version: 2.1.0
7
+ date: 2006-09-24 00:00:00 +09:00
8
8
  summary: a fast and extensible eRuby implementation which supports multi-language
9
9
  require_paths:
10
10
  - lib
11
11
  email:
12
12
  homepage: http://rubyforge.org/projects/erubis
13
13
  rubyforge_project:
14
- description: "Erubis is an implementation of eRuby and has the following features: * Very fast (about three times faster than ERB) * Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript) * Auto trimming spaces around '<% %>' * Auto sanitizing * Change embedded pattern (default '<% %>') * Context object available * Easy to expand in subclass"
14
+ description: "Erubis is an implementation of eRuby and has the following features: * Very fast, almost three times faster than ERB and even as fast as 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
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -30,9 +30,15 @@ authors:
30
30
  files:
31
31
  - lib/erubis
32
32
  - lib/erubis.rb
33
+ - lib/erubis/context.rb
34
+ - lib/erubis/converter.rb
33
35
  - lib/erubis/engine
34
36
  - lib/erubis/engine.rb
35
37
  - lib/erubis/enhancer.rb
38
+ - lib/erubis/error.rb
39
+ - lib/erubis/evaluator.rb
40
+ - lib/erubis/generator.rb
41
+ - lib/erubis/helper
36
42
  - lib/erubis/helper.rb
37
43
  - lib/erubis/local-setting.rb
38
44
  - lib/erubis/main.rb
@@ -46,26 +52,39 @@ files:
46
52
  - lib/erubis/engine/eruby.rb
47
53
  - lib/erubis/engine/escheme.rb
48
54
  - lib/erubis/engine/optimized.rb
55
+ - lib/erubis/helper/rails.rb
49
56
  - bin/erubis
50
- - examples/example.ec
51
- - examples/example.ejava
52
- - examples/example.ejavascript
53
- - examples/example.eperl
54
- - examples/example.ephp
55
- - examples/example.eruby
56
- - examples/example.escheme
57
- - examples/Makefile
57
+ - bin/notext
58
+ - examples/basic
59
+ - examples/pi
60
+ - examples/basic/example.ec
61
+ - examples/basic/example.ejava
62
+ - examples/basic/example.ejs
63
+ - examples/basic/example.eperl
64
+ - examples/basic/example.ephp
65
+ - examples/basic/example.eruby
66
+ - examples/basic/example.escheme
67
+ - examples/basic/Makefile
68
+ - examples/pi/example.ec
69
+ - examples/pi/example.ejava
70
+ - examples/pi/example.ejs
71
+ - examples/pi/example.eperl
72
+ - examples/pi/example.ephp
73
+ - examples/pi/example.eruby
74
+ - examples/pi/example.escheme
75
+ - examples/pi/Makefile
58
76
  - test/assert-text-equal.rb
59
- - test/test-bin.rb
60
77
  - test/test-engines.rb
61
78
  - test/test-erubis.rb
79
+ - test/test-main.rb
80
+ - test/test-notext.rb
62
81
  - test/test.rb
63
82
  - test/testutil.rb
64
83
  - doc/users-guide.html
65
84
  - doc/docstyle.css
66
85
  - README.txt
67
86
  - ChangeLog
68
- - COPYING
87
+ - LGPL
69
88
  - setup.rb
70
89
  - contrib/erubis
71
90
  - contrib/inline-require
@@ -87,10 +106,14 @@ files:
87
106
  - doc-api/classes/Erubis/ArrayBufferEruby.html
88
107
  - doc-api/classes/Erubis/ArrayEnhancer.html
89
108
  - doc-api/classes/Erubis/ArrayEruby.html
109
+ - doc-api/classes/Erubis/Basic
110
+ - doc-api/classes/Erubis/Basic.html
90
111
  - doc-api/classes/Erubis/BiPatternEnhancer.html
91
112
  - doc-api/classes/Erubis/BiPatternEruby.html
113
+ - doc-api/classes/Erubis/CGenerator.html
92
114
  - doc-api/classes/Erubis/CommandOptionError.html
93
115
  - doc-api/classes/Erubis/Context.html
116
+ - doc-api/classes/Erubis/Converter.html
94
117
  - doc-api/classes/Erubis/Ec.html
95
118
  - doc-api/classes/Erubis/Ejava.html
96
119
  - doc-api/classes/Erubis/Ejavascript.html
@@ -108,20 +131,37 @@ files:
108
131
  - doc-api/classes/Erubis/EscapedEscheme.html
109
132
  - doc-api/classes/Erubis/EscapeEnhancer.html
110
133
  - doc-api/classes/Erubis/Escheme.html
134
+ - doc-api/classes/Erubis/Evaluator.html
135
+ - doc-api/classes/Erubis/Generator.html
111
136
  - doc-api/classes/Erubis/HeaderFooterEnhancer.html
112
137
  - doc-api/classes/Erubis/HeaderFooterEruby.html
138
+ - doc-api/classes/Erubis/Helper
139
+ - doc-api/classes/Erubis/Helper.html
140
+ - doc-api/classes/Erubis/JavaGenerator.html
141
+ - doc-api/classes/Erubis/JavascriptGenerator.html
113
142
  - doc-api/classes/Erubis/Main.html
143
+ - doc-api/classes/Erubis/NoCodeEnhancer.html
144
+ - doc-api/classes/Erubis/NoCodeEruby.html
114
145
  - doc-api/classes/Erubis/NoTextEnhancer.html
115
146
  - doc-api/classes/Erubis/NoTextEruby.html
147
+ - doc-api/classes/Erubis/NotSupportedError.html
116
148
  - doc-api/classes/Erubis/OptimizedEruby.html
149
+ - doc-api/classes/Erubis/OptimizedGenerator.html
117
150
  - doc-api/classes/Erubis/OptimizedXmlEruby.html
118
151
  - doc-api/classes/Erubis/PercentLineEnhancer.html
119
152
  - doc-api/classes/Erubis/PercentLineEruby.html
153
+ - doc-api/classes/Erubis/PerlGenerator.html
154
+ - doc-api/classes/Erubis/PhpGenerator.html
155
+ - doc-api/classes/Erubis/PI
156
+ - doc-api/classes/Erubis/PI.html
120
157
  - doc-api/classes/Erubis/PrintEnabledEnhancer.html
121
158
  - doc-api/classes/Erubis/PrintEnabledEruby.html
122
159
  - doc-api/classes/Erubis/PrintOutEnhancer.html
123
160
  - doc-api/classes/Erubis/PrintOutEruby.html
124
161
  - doc-api/classes/Erubis/PrintOutSimplifiedEruby.html
162
+ - doc-api/classes/Erubis/RubyEvaluator.html
163
+ - doc-api/classes/Erubis/RubyGenerator.html
164
+ - doc-api/classes/Erubis/SchemeGenerator.html
125
165
  - doc-api/classes/Erubis/SimplifiedEruby.html
126
166
  - doc-api/classes/Erubis/SimplifyEnhancer.html
127
167
  - doc-api/classes/Erubis/StdoutEnhancer.html
@@ -133,13 +173,33 @@ files:
133
173
  - doc-api/classes/Erubis/TinyEruby.html
134
174
  - doc-api/classes/Erubis/XmlEruby.html
135
175
  - doc-api/classes/Erubis/XmlHelper.html
176
+ - doc-api/classes/Erubis/Basic/Converter.html
177
+ - doc-api/classes/Erubis/Basic/Engine.html
178
+ - doc-api/classes/Erubis/Helper/CachedRailsTemplate.html
179
+ - doc-api/classes/Erubis/Helper/RailsTemplate.html
180
+ - doc-api/classes/Erubis/PI/Converter.html
181
+ - doc-api/classes/Erubis/PI/Ec.html
182
+ - doc-api/classes/Erubis/PI/Ejava.html
183
+ - doc-api/classes/Erubis/PI/Ejavascript.html
184
+ - doc-api/classes/Erubis/PI/Engine.html
185
+ - doc-api/classes/Erubis/PI/Eperl.html
186
+ - doc-api/classes/Erubis/PI/Ephp.html
187
+ - doc-api/classes/Erubis/PI/Eruby.html
188
+ - doc-api/classes/Erubis/PI/Escheme.html
189
+ - doc-api/classes/Erubis/PI/TinyEruby.html
136
190
  - doc-api/files/__
137
191
  - doc-api/files/erubis
138
192
  - doc-api/files/erubis_rb.html
139
193
  - doc-api/files/__/README_txt.html
194
+ - doc-api/files/erubis/context_rb.html
195
+ - doc-api/files/erubis/converter_rb.html
140
196
  - doc-api/files/erubis/engine
141
197
  - doc-api/files/erubis/engine_rb.html
142
198
  - doc-api/files/erubis/enhancer_rb.html
199
+ - doc-api/files/erubis/error_rb.html
200
+ - doc-api/files/erubis/evaluator_rb.html
201
+ - doc-api/files/erubis/generator_rb.html
202
+ - doc-api/files/erubis/helper
143
203
  - doc-api/files/erubis/helper_rb.html
144
204
  - doc-api/files/erubis/local-setting_rb.html
145
205
  - doc-api/files/erubis/main_rb.html
@@ -153,6 +213,7 @@ files:
153
213
  - doc-api/files/erubis/engine/eruby_rb.html
154
214
  - doc-api/files/erubis/engine/escheme_rb.html
155
215
  - doc-api/files/erubis/engine/optimized_rb.html
216
+ - doc-api/files/erubis/helper/rails_rb.html
156
217
  test_files:
157
218
  - test/test.rb
158
219
  rdoc_options: []
@@ -161,6 +222,7 @@ extra_rdoc_files: []
161
222
 
162
223
  executables:
163
224
  - erubis
225
+ - notext
164
226
  extensions: []
165
227
 
166
228
  requirements: []