mostly working templating for landing page

This commit is contained in:
2025-11-24 22:53:13 +01:00
parent 50c0f46207
commit 144d8aa844
11 changed files with 299 additions and 32 deletions

32
test.py Normal file
View File

@@ -0,0 +1,32 @@
from jinja2 import Template
text = """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" /> <!--It is necessary to use the UTF-8 encoding with plotly graphics to get e.g. negative signs to render correctly -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
{{ text1 }}
{{ text2 }}
</body>
</html>
"""
tmpl = Template(text)
print(
tmpl.render(
text1 = "TEST"
)
)