lib/barista/compiler.rb in barista-0.1.5 vs lib/barista/compiler.rb in barista-0.2.0

- old
+ new

@@ -27,9 +27,13 @@ def to_js compile! unless @compiled @compiled_content.to_s end + def self.dirty?(from, to) + File.exist?(from) && (!File.exist?(to) || File.mtime(to) < File.mtime(from)) + end + protected def coffee_options ["-p"].tap do |options| options << "--no-wrap" if Barista.no_wrap? \ No newline at end of file