[ 源代码: yattag ]
软件包:python3-yattag(1.14.0-1)
library for generating HTML or XML in a pythonic way (Python 3)
With Yattag,
* you don't have to worry about closing HTML tags * your HTML templates are Python code. Not a weird template language. Just Python. * you can easily render HTML forms, with defaults values and error messages.
It's actually easier and more readable to generate dynamic HTML with Yattag than to write static HTML.