lib/ggake/haml.rb in ggake-0.3.0 vs lib/ggake/haml.rb in ggake-0.3.1

- old
+ new

@@ -1,9 +1,9 @@ module Rake module DSL def haml_template(tmpl, options) - (File.join(options[:output], File.basename(tmpl, '.haml')) + '.html').tap do |html_file| + File.join(options[:output], tmpl).ext('html').tap do |html_file| file html_file => tmpl do sh "haml #{tmpl} #{html_file}" end end end