1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00
twbs--bootstrap-sass/test/dummy_sass_only/compile.rb
2013-11-14 21:55:26 +01:00

13 lines
241 B
Ruby

require 'sass'
require 'bootstrap-sass'
css = Sass.compile(
File.read(File.expand_path('./import_all.sass', File.dirname(__FILE__))),
:syntax => 'sass'
)
if ARGV[0]
File.open(ARGV[0], 'w') { |f| f.write css }
else
puts css
end