lib/bourdain/helpers.rb in bourdain-1.3.2 vs lib/bourdain/helpers.rb in bourdain-1.3.3
- old
+ new
@@ -12,10 +12,10 @@
def apply_template file, opts
template_name, locals = opts[:template], opts[:locals]
locals = Bourdain::Helpers::Locals.new(locals).bind unless locals.nil?
template_path = gem_path('templates', *template_name)
- template = ERB.new File.read(template_path)
+ template = ERB.new File.read(template_path), nil, '-'
contents = template.result(locals).strip
File.open(file, 'w') { |f| f.write contents }
end
require_relative 'helpers/config'
\ No newline at end of file