Skip to content

Commit

Permalink
Fix bin/haml -p to work with new Haml::Parser
Browse files Browse the repository at this point in the history
This was broken by #860. 🙇
  • Loading branch information
k0kubun committed Feb 27, 2017
1 parent 914416d commit 102c79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/haml/exec.rb
Expand Up @@ -292,8 +292,8 @@ def process_result
begin

if @options[:parse]
parser = ::Haml::Parser.new(template, ::Haml::Options.new(@options))
pp parser.parse
parser = ::Haml::Parser.new(::Haml::Options.new(@options))
pp parser.call(template)
return
end

Expand Down

0 comments on commit 102c79f

Please sign in to comment.