Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/bashly/concerns/renderable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module Bashly
module Renderable
def render(view)
template = File.read view_path(view)
# TODO: This new format is only supported in Ruby >= 2.6
# So for now, we keep the old deprecated syntax
# ERB.new(template, trim_mode: '%-').result(binding)
ERB.new(template, nil, '%-').result(binding)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/bashly/models/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def commands
return [] unless options["commands"]
options["commands"].map do |options|
options['parents'] = parents + [name]
command = Command.new options
Command.new options
end
end

Expand Down