13 if ! Dir.exist?(outputDir)
17 open(outputDir + '/index.html', 'w') do |fd|
19 fd.puts " <head><title>Books</title></head>"
27 (path, mimeType) = book.cover.writeImage(outputDir, 'image' + imageCount.to_s)
28 image = '<img src="' + path + '"/>'
30 image = '(No cover image)'
33 fd.puts " <tr><td>" + image + "</td><td>" + book.describe() + "</td></tr>"