Enable JFinal user to use Rythm (https://github.com/greenlaw110/rythm) template engine to render views.
Usage:
In your Java source file
- Load configuration from your properties file
public void configConstant(Constants me) {
this.conf = loadPropertyFile("path/to/properties/");
}
- Enable Rythm
Config RythmPlugin in your configPlugin method using the configuration loaded in the above step:
public void configPlugin(Plugins me) {
...
me.add(new RythmPlugin(conf));
}
In your properties file:
- Configure template home in your properties file:
# this set the template home to WEB-INF/rythm folder
rythm.home.template=../rythm
- Enable i18n if needed in your properties file:
rythm.i18n.enabled=true
Check the SAMPLES.txt file to find sample applications