summaryrefslogtreecommitdiff
path: root/gemini.py
diff options
context:
space:
mode:
Diffstat (limited to 'gemini.py')
-rw-r--r--gemini.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gemini.py b/gemini.py
index b940bb7..2d29236 100644
--- a/gemini.py
+++ b/gemini.py
@@ -19,7 +19,8 @@ def gem2html(gem: str) -> str:
parser = fsm.Parser(gem.split('\n'), html)
parser.parse()
html.write('</div>\n</body>\n</html>')
- print(html.getvalue())
+ with open('latest.html', 'w') as fp:
+ fp.write(html.getvalue())
return html.getvalue()