Generate HTML from HTML template in python?
问题 I want to design my own HTML template with tags like JSP or Jade and then pass data from python to it and let it generate full html page. I don't want to construct document at python side like with DOM. Only data goes to page and page tempalte decides, how data lays out. I don't want to serve resulting pages with HTTP, only generate HTML files. Is it possible? UPDATE I found Jinja2, but I has strange boilerplate requirements. For example, they want me to create environment with env =