与Jython一起运行的Python中的模板库(引擎) [英] Template Lib (Engine) in Python running with Jython

查看:73
本文介绍了与Jython一起运行的Python中的模板库(引擎)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在搜索模板库或模板引擎以生成在Jython下运行的HTML(XML)(可以使用Jython 2.5 Alpha).

Im searching a Template Lib or Template Engine for generating HTML (XML) that runs under Jython (Jython 2.5 Alpha is ok).

推荐答案

使用StringTemplate,请参见 http://www.cs.usfca.edu/~parrt/papers/mvc.templates.pdf 了解原因.没有什么比这更好的了,它同时支持Java和Python(以及.NET等).

Use StringTemplate, see http://www.cs.usfca.edu/~parrt/papers/mvc.templates.pdf for details of why. There is nothing better, and it supports both Java and Python (and .NET, etc.).

这篇关于与Jython一起运行的Python中的模板库(引擎)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆