templates with includes

This commit is contained in:
tdreyno 2009-10-14 14:16:15 -07:00
parent 29fc3683d7
commit cb7aed7b1a
3 changed files with 5 additions and 3 deletions

View file

@ -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|

View file

@ -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

View file

@ -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"]