from staticjinja import Site from datetime import datetime as dt if __name__ == "__main__": site = Site.make_site(env_globals={ 'date': dt.now().strftime("%Y-%m-%d") }) # enable automatic reloading site.render(use_reloader=True)