From 0c6d1f967d6dc37012a777c7f1a2707b8c44472f Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 28 Sep 2008 15:13:33 -0700 Subject: [PATCH] process haml files in the examples correctly. --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index ba232a1c..6fe0c62f 100644 --- a/Rakefile +++ b/Rakefile @@ -58,7 +58,7 @@ task :examples do engine = Haml::Engine.new(open(haml_file).read, :filename => haml_file) target_dir = "built_examples/#{basename.sub(%r{/[^/]*$},'')}" FileUtils.mkdir_p(target_dir) - output = open("built_examples/#{basename}",'w') + output = open("built_examples/#{basename}.html",'w') output.write(engine.render) output.close end @@ -81,7 +81,7 @@ task :examples do # copy any other non-haml and non-sass files directly over target_dir = "built_examples/#{example.sub(%r{.*/},'')}" other_files = FileList["#{example}/**/*"] - other_files.exclude "**/*.sass", "*.haml" + other_files.exclude "**/*.sass", "**/*.haml" other_files.each do |file| if File.directory?(file)