Can Python be embedded in HTML like PHP and JSP?

前端 未结 5 1781
无人及你
无人及你 2020-12-14 07:47

Is there a way of writing Python embedded in HTML like I do with PHP or JSP?

5条回答
  •  抹茶落季
    2020-12-14 08:26

    Use a template engine, such as:

    • Jinja2 (based on Django's templating)
    • mako
    • Cog
    • Cheetah

    The python wiki also has an article on this topic, with many more suggestions.

提交回复
热议问题