diff options
| author | cashmere <cashmere@autistici.org> | 2026-06-19 22:48:47 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-06-19 22:48:47 +0200 |
| commit | f76a475d4da66f1e20a679313765633cabfbec3c (patch) | |
| tree | ad16d63326d6f05e22bb713df8be10259d2e1d7d /src/technical_renaissance | |
| parent | b18306e663485556160c4cce39f2165a9d0f1c4a (diff) | |
| download | technical-renaissance-f76a475d4da66f1e20a679313765633cabfbec3c.tar.gz | |
app.py: add jinjatemplate
Diffstat (limited to 'src/technical_renaissance')
| -rw-r--r-- | src/technical_renaissance/app.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/technical_renaissance/app.py b/src/technical_renaissance/app.py index 7035c13..80b7a19 100644 --- a/src/technical_renaissance/app.py +++ b/src/technical_renaissance/app.py @@ -1,3 +1,6 @@ +import os +import pathlib +from robyn.templating import JinjaTemplate from typing import cast import tomllib from pathlib import Path @@ -21,6 +24,8 @@ app.serve_directory( route="/static", directory_path="./static", ) +current_file_path = pathlib.Path(__file__).parent.resolve() +JINJA_TEMPLATE = JinjaTemplate(os.path.join(current_file_path, "templates")) @app.get("/") |
