rythm

Rythm template engine and GAE

情到浓时终转凉″ 提交于 2019-12-23 16:46:00
问题 Has anybody managed to get Rythm template engine to work with Google Appengine? Thanks 回答1: Rythm now (version 1.0.0-20120505) works on GAE. There is a demo app running at http://play-rythm-demo.appspot.com/ And the source code of the demo app: https://github.com/greenlaw110/play-rythm-demo 来源: https://stackoverflow.com/questions/10201712/rythm-template-engine-and-gae

使用Rythm插件轻松实现JFinal应用的国际化

一世执手 提交于 2019-12-07 08:55:30
刚看了 @eyelee 同学的 JFinal 国际化的简单实现 的文章,我打算分享一下自己为 @紫电清霜 的 JFinal-BBS 示例应用添加 Rythm模版引擎 和国际化功能展示的经验。 在开始之前,大家可以先通过点击 这个视频 看看效果。 下面是实现步骤: 下载 JFinal Rythm插件 。解包后将lib中的jar文件加入到你的JFinal应用项目中 配置JFinal Rythm插件: private Properties conf = null; public void configConstant(Constants me) { this.conf = loadPropertyFile("path/to/properties/"); } public void configPlugin(Plugins me) { ... me.add(new RythmPlugin(conf)); } 在你的配置文件中加入以下配置: # 设置模版根目录到 WEB-INF/rythm rythm.home.template=../rythm # 支持国际化 rythm.i18n.enabled=true 创建你的资源文件: messages_zh_CN.properties messages_en_US.properties 并在其中分别加入所需内容,例如: layout.home