12 lines
291 B
Python
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 ]
|
|
]}') |