lib/nagoro/pipe/compile.rb in manveru-nagoro-0.0.3 vs lib/nagoro/pipe/compile.rb in manveru-nagoro-2009.01.29

- old
+ new

@@ -5,16 +5,18 @@ case name when 'r' append("`;#{instruction}; _out_ << %Q`") when 'ro' append("`;_out_ << (#{instruction}); _out_ << %Q`") + when 'h' + append("`;_out_ << h(#{instruction}); _out_ << %Q`") else append("<?#{name} #{instruction}?>") end end def result - "_out_ = []; _out_ << %Q`#{@body.join}`; _out_.join" + "_out_ = []; _out_ << %Q`#{super}`; _out_.join" end def compile(template) template = template.read if template.respond_to?(:read) copy = template.gsub('`', '\\\\`')