public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Fixes open IO issue
wycats (author)
Wed Jul 23 15:37:00 -0700 2008
commit  a869557e886ed1aa35e9bd54882a7e03684629a9
tree    f6c6b8dce022c040c475ec9bffe62e022c744020
parent  8a2940914437a47af60d927dfad427dc7594a5e5
...
104
105
106
107
 
108
 
 
109
110
111
...
104
105
106
 
107
108
109
110
111
112
113
0
@@ -104,8 +104,10 @@ module Merb::Template
0
     # @public
0
     def inline_template(io, mod = Merb::InlineTemplates)
0
       path = File.expand_path(io.path)
0
-      METHOD_LIST[path.gsub(/\.[^\.]*$/, "")] = 
0
+      ret = METHOD_LIST[path.gsub(/\.[^\.]*$/, "")] = 
0
         engine_for(path).compile_template(io, template_name(path), mod)
0
+      io.close
0
+      ret
0
     end
0
     
0
     # Finds the engine for a particular path.

Comments