templates with includes
This commit is contained in:
parent
29fc3683d7
commit
cb7aed7b1a
2
Rakefile
2
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|
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue