public
Description: Code as Art, Art as Code. Processing and Ruby are meant for each other.
Homepage: http://github.com/jashkenas/ruby-processing/wikis
Clone URL: git://github.com/jashkenas/ruby-processing.git
Search Repo:
Base exporter now File.opens the ERB, for successfull applet exports on 
windows.
jashkenas (author)
Tue Apr 29 06:46:42 -0700 2008
commit  eca45610a0690e8c09c9e7eeac15e3a77daf0c9d
tree    72a9315ae0f732e8e965303ba97cb84f26e6bb87
parent  5c3a5e1a0ef501f63c4952a1b0536a38d61fd13d
...
45
46
47
48
 
 
49
50
51
...
45
46
47
 
48
49
50
51
52
0
@@ -45,7 +45,8 @@ module Processing
0
     def render_erb_in_path_with_binding(path, some_binding, opts={})
0
       erbs = Dir.glob(path + "/**/*.erb")
0
       erbs.each do |erb|
0
- rendered = render_erb_from_string_with_binding(File.new(erb).read, some_binding)
0
+ string = File.open(erb) {|f| f.read }
0
+ rendered = render_erb_from_string_with_binding(string, some_binding)
0
         File.open(erb.sub(".erb", ""), "w") {|f| f.print rendered }
0
         rm erb if opts[:delete]
0
       end

Comments

    No one has commented yet.