lib/framework/rho/render.rb in rhodes-2.3.2 vs lib/framework/rho/render.rb in rhodes-2.4.0.beta.1
- old
+ new
@@ -22,10 +22,17 @@
@layout.nil? ? 'layout' : @layout
end
def self.renderfile(filename, req = {}, res = {})
res = ""
- if File.extname(filename) == '.iseq'
+ if defined?(RHO_WP7)
+ if File.extname(filename) == '.iseq'
+ filename = filename[0,filename.length-5] + '.rb'
+ end
+ end
+
+ render_ext = defined?(RHO_WP7) ? '.rb' : '.iseq'
+ if File.extname(filename) == render_ext
res = (RhoController.new).inst_render_index(filename, req, res)
else
res = IO.read(filename)
end
RhoController.start_objectnotify()