lib/ggake/haml.rb in ggake-0.3.1 vs lib/ggake/haml.rb in ggake-0.4.0
- old
+ new
@@ -1,10 +1,11 @@
module Rake
module DSL
def haml_template(tmpl, options)
- File.join(options[:output], tmpl).ext('html').tap do |html_file|
- file html_file => tmpl do
+ File.join(options[:output], File.basename(tmpl)).ext('html').tap do |html_file|
+ directory options[:output]
+ file html_file => [options[:output], tmpl] do
sh "haml #{tmpl} #{html_file}"
end
end
end