This commit is contained in:
SG
2025-06-09 23:34:36 +03:00
parent 3348df26e5
commit 2d7f1c1f7d
30 changed files with 1312 additions and 67 deletions

8
jinja_env.py Normal file
View File

@@ -0,0 +1,8 @@
from jinja2 import Environment, FileSystemLoader
from config import Config
# Prepare template rendering engine
env = Environment(loader=FileSystemLoader(Config.TEMPLATES_DIR))
env.globals['header_image'] = Config.HEADER_IMAGE
index_template = env.get_template("index.html")
content_item_template = env.get_template("content_item.html")