mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fix bin/haml.
This commit is contained in:
parent
d4dca02777
commit
336fb4663c
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,7 @@ module Haml
|
|||
input_file, output_file = if input
|
||||
[nil, open_file(ARGV[0], 'w')]
|
||||
else
|
||||
@options[:for_engine][:filename] = ARGV[0]
|
||||
@options[:filename] = ARGV[0]
|
||||
[open_file(ARGV[0]), open_file(ARGV[1], 'w')]
|
||||
end
|
||||
|
||||
|
@ -161,6 +161,7 @@ END
|
|||
|
||||
def process_result
|
||||
super
|
||||
@options[:for_engine][:filename] = @options[:filename] if @options[:filename]
|
||||
require File.dirname(__FILE__) + "/../#{@name.downcase}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue