mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Add a --format switch to the haml executable.
This commit is contained in:
parent
61bd42f6b8
commit
5ac9ec2eb3
1 changed files with 5 additions and 0 deletions
|
@ -213,6 +213,11 @@ END
|
||||||
'Output style. Can be indented (default) or ugly.') do |name|
|
'Output style. Can be indented (default) or ugly.') do |name|
|
||||||
@options[:for_engine][:ugly] = true if name.to_sym == :ugly
|
@options[:for_engine][:ugly] = true if name.to_sym == :ugly
|
||||||
end
|
end
|
||||||
|
|
||||||
|
opts.on('-f', '--format NAME',
|
||||||
|
'Output format. Can be xhtml (default), html4, or html5.') do |name|
|
||||||
|
@options[:for_engine][:output] = name.to_sym
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_result
|
def process_result
|
||||||
|
|
Loading…
Add table
Reference in a new issue