We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98d749 commit af6b8a7Copy full SHA for af6b8a7
lib/bashly/concerns/renderable.rb
@@ -4,6 +4,9 @@ module Bashly
4
module Renderable
5
def render(view)
6
template = File.read view_path(view)
7
+ # TODO: This new format is only supported in Ruby >= 2.6
8
+ # So for now, we keep the old deprecated syntax
9
+ # ERB.new(template, trim_mode: '%-').result(binding)
10
ERB.new(template, nil, '%-').result(binding)
11
end
12
lib/bashly/models/command.rb
@@ -38,7 +38,7 @@ def commands
38
return [] unless options["commands"]
39
options["commands"].map do |options|
40
options['parents'] = parents + [name]
41
- command = Command.new options
+ Command.new options
42
43
44
0 commit comments