13 if ! Dir.exist?(outputDir)
17 open(outputDir + '/index.html', 'w') do |fd|
20 fd.puts ' <meta charset="utf-8"/>'
21 fd.puts ' <title>Books</title>'
24 fd.puts ' display: inline-block;'
25 fd.puts ' width: 400px;'
26 fd.puts ' margin: 10px;'
27 fd.puts ' border 3px solid #73ad21;'
37 (path, mimeType) = book.cover.writeImage(outputDir, 'image' + imageCount.to_s)
38 image = '<img height="200px" src="' + path + '"/>'
40 image = '(No cover image)'
43 fd.puts ' <div><table>'
44 fd.puts ' <tr><td><a href="' + book.path + '">' + image + '</a></td><td>' + book.describe() + '</td></tr>'
45 fd.puts ' </table></div>'