jfinal-rythm

码农软件 · 软件分类 · 模板引擎 · 2019-08-23 16:44:01

软件介绍

为JFinal提供的插件,让JFinal应用程序轻松使用Rythm模版引擎。使用方法:

1. 加入发布包中的jar文件到你的JFinal应用程序lib目录

2. 配置插件:

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));
} 


3. 在你的配置文件中加入:

# 设置模版根目录到 WEB-INF/rythm
rythm.home.template=../rythm

# 支持国际化
rythm.i18n.enabled=true


4. 然后你就可以用Rythm来写你的模版。这里有两个示例程序可供参考:

本文地址:https://www.codercto.com/soft/d/13007.html

The Shallows

The Shallows

Nicholas Carr / W. W. Norton & Company / 2011-6-6 / USD 15.95

"Is Google making us stupid?" When Nicholas Carr posed that question, in a celebrated Atlantic Monthly cover story, he tapped into a well of anxiety about how the Internet is changing us. He also crys......一起来看看 《The Shallows》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

随机密码生成器
随机密码生成器

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码