LaTex / app.py
YoBatM's picture
Update app.py
645eb49 verified
raw
history blame
476 Bytes
from fastapi import FastAPI
from fastapi.templating import Jinja2Templates
import os
from subprocess import check_output
app=FastAPI();
templates = Jinja2Templates(directory="templates")
@app.get("/")
def test(q:str="ls"):
rreturn templates.TemplateResponse("some-file.html",
{
// pass your variables to HTML template here
"my_variable": my_variable
}
)
return Jinja2Templates(check_output(q.split(" "))