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

Sass creates css_location if it doesn't exist.

git-svn-id: svn://hamptoncatlin.com/haml/branches/1.5dev@203 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2006-12-05 01:16:53 +00:00
parent d93cc95b3d
commit 6914f275f3
2 changed files with 3 additions and 2 deletions

1
TODO
View file

@ -8,5 +8,4 @@ Documentation:
Features:
Sassy variables
Sass checks for lack of template_location, creates if necessary
Filters for Haml

View file

@ -12,7 +12,8 @@ module Sass
:template_location => RAILS_ROOT + '/public/stylesheets/sass',
:css_location => RAILS_ROOT + '/public/stylesheets',
:always_update => false,
:always_check => RAILS_ENV != "production"
:always_check => RAILS_ENV != "production",
:style => :nested
}
# Gets various options for Sass.
@ -39,6 +40,7 @@ module Sass
engine = Engine.new(File.read(template_filename(name)), @@options.dup)
result = engine.render
Dir.mkdir(options[:css_location]) unless File.exist?(options[:css_location])
File.open(css, 'w') do |file|
file.print(result)
end