public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
Fixes builder to make use of new API
wycats (author)
Wed Jun 18 16:18:27 -0700 2008
commit  ab919fda5c26ced9dc10f97f7e5d269becd41091
tree    092973ae8b1794e1d8efc4bd06e29024853a17fa
parent  5b553867bde7753b0c4da77f50d79eef30fa924c
...
9
10
11
12
13
 
 
14
15
16
...
20
21
22
23
 
24
25
26
...
9
10
11
 
 
12
13
14
15
16
...
20
21
22
 
23
24
25
26
0
@@ -9,8 +9,8 @@ module Merb::Template
0
     # name<~to_s>:: The name of the template method.
0
     # mod<Class, Module>::
0
     # The class or module wherein this method should be defined.
0
- def self.compile_template(path, name, mod)
0
- path = File.expand_path(path)
0
+ def self.compile_template(io, name, mod)
0
+ path = File.expand_path(io.path)
0
       method = mod.is_a?(Module) ? :module_eval : :instance_eval
0
       mod.send(method, %{
0
         def #{name}
0
@@ -20,7 +20,7 @@ module Merb::Template
0
             c
0
           end
0
           xml = ::Builder::XmlMarkup.new(config)
0
- self.instance_eval %{#{File.read(path)}}
0
+ self.instance_eval %{#{io.read}}
0
           xml.target!
0
         end
0
       })

Comments

    No one has commented yet.