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

[Sass] Expose a slightly lower level method to check if a stylesheet needs updating for use in Compass.

This commit is contained in:
Chris Eppstein 2009-04-22 12:41:08 -07:00
parent 5b60dafa1f
commit 7894c37aa9

View file

@ -171,6 +171,10 @@ END
def stylesheet_needs_update?(name, template_path, css_path)
css_file = css_filename(name, css_path)
template_file = template_filename(name, template_path)
exact_stylesheet_needs_update?(css_file, template_file)
end
def exact_stylesheet_needs_update?(css_file, template_file)
if !File.exists?(css_file)
return true
else