1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Use SCSS syntax when compiling things with extension .scss from the command line.

This commit is contained in:
Nathan Weizenbaum 2010-01-12 18:29:41 -08:00
parent bbb000f13b
commit a8f3fa012b

View file

@ -253,6 +253,7 @@ END
input = @options[:input]
output = @options[:output]
@options[:syntax] ||= :scss if input.is_a?(File) && input.path =~ /\.scss$/
tree =
if input.is_a?(File) && !@options[:check_syntax]
::Sass::Files.tree_for(input.path, @options[:for_engine])