lib/filegen/erb_generator.rb in filegen-0.2.3 vs lib/filegen/erb_generator.rb in filegen-0.3.0
- old
+ new
@@ -21,10 +21,10 @@
# @param [IO] source
# The source template to be used
# @param [IO] destination
# The output io handle
def compile(source, destination)
- erb = ERB.new(source.read)
+ erb = ERB.new(source.read, nil, '-')
destination.puts erb.result(data.instance_binding)
end
end
end