[英]Are there any Python template engines that support Python 3.x
It seems they all run on Python 2.x. 似乎它们都在Python 2.x上运行。
(Actually I want a more widely-used engine that has Python 3.x support.) (实际上,我想要一种使用更广泛且具有Python 3.x支持的引擎。)
刚刚发布的Jinja 2.3具有对Python 3的实验性支持。http://lucumr.pocoo.org/2010/2/10/jinja-2-3-released
If you don't mind using beta software, the newly-released moody-templates was written for Python 3 from the ground up. 如果您不介意使用Beta版软件,那么新发布的穆迪模板完全是为Python 3编写的。
https://github.com/etianen/moody-templates https://github.com/etianen/moody-templates
也许已经过时了,但是Mako支持python 3。
The first search result is the templating wiki page ; 第一个搜索结果是模板维基页面 ; which includes at least one templating engine which says it works on Python 2.4, 2.5, 2.6 and 3.0 .
其中包括至少一个模板引擎 ,该引擎表示可以在Python 2.4、2.5、2.6 和3.0上运行 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.