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:
parent
5b60dafa1f
commit
7894c37aa9
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue