Skip to content

Commit

Permalink
Merge pull request #189 from dom0317/issue188
Browse files Browse the repository at this point in the history
(#188) use named args in ERB.new
  • Loading branch information
ripienaar authored Nov 30, 2023
2 parents 41122f5 + 9464865 commit d7a864e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mcollective/pluginpackager/forge_packager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def render_templates
end

def render_template(infile, outfile)
erb = ERB.new(File.read(infile), 0, "-")
erb = ERB.new(File.read(infile), safe_level:0, trim_mode:"-")
File.open(outfile, "w") do |f|
f.puts erb.result(binding)
end
Expand Down

0 comments on commit d7a864e

Please sign in to comment.