pyx/route.py
2025-08-22 09:26:18 -04:00

12 lines
291 B
Python

from pyx import HTML, HEAD, BODY, STYLE, Capture
from user_template import ViewFunction
output = Capture(ViewFunction(name="seth"))
with open("example.html", "w") as file:
file.write(f'{HTML[
HEAD[
STYLE[ output.css ]
],
BODY[ output.html ]
]}')