Fixed a duplicate ending bug in the examples generator.

This commit is contained in:
Chris Eppstein 2008-11-30 23:38:48 -08:00
parent 6dc577067c
commit da4275bdec

View File

@ -58,7 +58,7 @@ task :examples do
engine = Haml::Engine.new(open(haml_file).read, :filename => haml_file) engine = Haml::Engine.new(open(haml_file).read, :filename => haml_file)
target_dir = "built_examples/#{basename.sub(%r{/[^/]*$},'')}" target_dir = "built_examples/#{basename.sub(%r{/[^/]*$},'')}"
FileUtils.mkdir_p(target_dir) FileUtils.mkdir_p(target_dir)
output = open("built_examples/#{basename}.html",'w') output = open("built_examples/#{basename}",'w')
output.write(engine.render) output.write(engine.render)
output.close output.close
end end