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://codercto.com/soft/d/13007.html

Visual C++网络通信协议分析与应用实现

Visual C++网络通信协议分析与应用实现

汪晓平、钟军 / 人民邮电出版社 / 2003-2-1 / 60.00元

本书介绍了如何利用Visual一起来看看 《Visual C++网络通信协议分析与应用实现》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具