Skip to content

Commit

Permalink
Merge branch 'bf/ruby-updates' into bf/update-activesupport
Browse files Browse the repository at this point in the history
  • Loading branch information
beanieboi committed Oct 9, 2023
2 parents 1bfa297 + e1b30e8 commit 6a50847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pliny/commands/creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def parse_erb_files
Dir.glob("#{app_dir}/{*,.*}.erb").each do |file|
static_file = file.gsub(/\.erb$/, '')

template = ERB.new(File.read(file), 0)
template = ERB.new(File.read(file))
context = OpenStruct.new(app_name: name)
content = template.result(context.instance_eval { binding })

Expand Down
2 changes: 1 addition & 1 deletion lib/pliny/commands/generator/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def display(msg)

def render_template(template_file, vars = {})
template_path = File.dirname(__FILE__) + "/../../templates/#{template_file}"
template = ERB.new(File.read(template_path), 0, '>')
template = ERB.new(File.read(template_path), trim_mode: '>')
context = OpenStruct.new(vars)
template.result(context.instance_eval { binding })
end
Expand Down

0 comments on commit 6a50847

Please sign in to comment.