diff --git a/tools/package-puzzles.py b/tools/package-puzzles.py
index 90b248b..f852d6d 100755
--- a/tools/package-puzzles.py
+++ b/tools/package-puzzles.py
@@ -31,6 +31,57 @@ def write_kv_pairs(ziphandle, filename, kv):
filehandle.write("%s: %s%s" % (key, kv[key], os.linesep))
filehandle.seek(0)
ziphandle.writestr(filename, filehandle.read())
+
+def escape(s):
+ return s.replace('&', '&').replace('<', '<').replace('>', '>')
+
+def generate_html(ziphandle, puzzle, puzzledir, category, points, author, files):
+ html_content = io.StringIO()
+ file_content = io.StringIO()
+ if files:
+ file_content.write(
+''' Associated files:
+
+''')
+ for fn in files:
+ file_content.write('
+