From cb7aed7b1a1a99dd95ce7bcf7e9a666a07e80ea2 Mon Sep 17 00:00:00 2001 From: tdreyno Date: Wed, 14 Oct 2009 14:16:15 -0700 Subject: [PATCH] templates with includes --- Rakefile | 2 ++ lib/middleman/templater+dynamic_renderer.rb | 4 ++-- middleman.gemspec | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 26705a73..86213916 100644 --- a/Rakefile +++ b/Rakefile @@ -19,6 +19,8 @@ begin gem.add_dependency("yui-compressor") gem.add_dependency("haml", ">=2.1.0") gem.add_dependency("compass") + gem.add_development_dependency("rspec") + gem.add_development_dependency("sdoc") end Jeweler::RubyforgeTasks.new do |rubyforge| diff --git a/lib/middleman/templater+dynamic_renderer.rb b/lib/middleman/templater+dynamic_renderer.rb index 6ec760bd..27f4ba24 100644 --- a/lib/middleman/templater+dynamic_renderer.rb +++ b/lib/middleman/templater+dynamic_renderer.rb @@ -21,8 +21,8 @@ class Templater::Actions::Template def identical? if File.exists?(destination) - extension = File.extname(destination) - return true if !%w(.css .js).include?(extension) && File.exists?(source) && File.mtime(source) < File.mtime(destination) + extension = File.extname(source) + return true if !%w(.sass .js .haml).include?(extension) && File.exists?(source) && File.mtime(source) < File.mtime(destination) File.read(destination) == render else false diff --git a/middleman.gemspec b/middleman.gemspec index d0b7d0eb..de29c438 100644 --- a/middleman.gemspec +++ b/middleman.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = %q{middleman} - s.version = "0.9.15" + s.version = "0.9.16" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Thomas Reynolds"]