1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

always compile files which could include other files (css & js)

This commit is contained in:
tdreyno 2009-10-12 14:13:28 -07:00
parent 47997fbe15
commit 23864d43d7
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,8 @@ class Templater::Actions::Template
def identical? def identical?
if File.exists?(destination) if File.exists?(destination)
return true if File.exists?(source) && File.mtime(source) < File.mtime(destination) extension = File.extname(destination)
return true if !%w(.css .js).include?(extension) && File.exists?(source) && File.mtime(source) < File.mtime(destination)
File.read(destination) == render File.read(destination) == render
else else
false false

View file

@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Thomas Reynolds"] s.authors = ["Thomas Reynolds"]
s.date = %q{2009-10-09} s.date = %q{2009-10-12}
s.email = %q{tdreyno@gmail.com} s.email = %q{tdreyno@gmail.com}
s.executables = ["mm-init", "mm-build", "mm-server"] s.executables = ["mm-init", "mm-build", "mm-server"]
s.extra_rdoc_files = [ s.extra_rdoc_files = [