Print the new README

This commit is contained in:
Jake Howard 2024-02-07 19:46:42 +00:00
parent f9400b8b05
commit 343686f515
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 6 additions and 2 deletions

View File

@ -19,9 +19,13 @@ def get_posts() -> list[dict]:
def main(): def main():
template = jinja2.Template(TEMPLATE_FILE.read_text()) template = jinja2.Template(TEMPLATE_FILE.read_text())
OUTPUT_FILE.write_text(template.render( new_readme = template.render(
latest_posts=get_posts() latest_posts=get_posts()
)) )
print(new_readme)
OUTPUT_FILE.write_text(new_readme)
if __name__ == "__main__": if __name__ == "__main__":
main() main()