Rythm Template Engine [rythm] module
This module is for the Play 1.x series only.
PlayRythm is yet another template engine for play v1.x. It’s built on top of Rythm template engine with the following features:
- Static and strong typed pure Java template. Yes it’s like Japid and Jamon
- Razor like syntax
- Easy to integrate with Play and migrate your groovy template one by one
- Your existing controllers doesn’t need to be changed
- Your existing mailers doesn’t need to be changed
- Once an new template file under
app/rythm
folder created in the corresponding path, Rythm will take over; all other groovy templates still works - Great Error reporting on parsing, compilation and excuting errors, using Play-2.0 style!
- Automatic escape expression output, like Groovy and unlike Japid
- High performance at Japid level
- Support layout and tag, you get all you have in Groovy template, actually even more
- Support FastTags and JavaExtensions with constraints
- Support properties enhancement to template class
- Tag invocation decorations and chain them together
- Template content decorations and chain them together
- Invoke controller action method directly from within your template
- Include other template inline (not the same as tag invocation)
- New
Cache4
annotation to mark on controller action method - Support GAE
- String Interpolation Mode
- ToString Mode
- AutoToString Mode
- Customize template class by adding imports and methods source code
Rythm template at a glance:
@extends(main)
@args List<User> users
...
<ul>
@for(User user: users) {
@if (!user.disabled()) {
<li class="@user_parity">
<span>@user_index</span>
<a href="@url(User.show(user.getId()))">@user.getName()</a>
</li>
}
}
</ul>
Check documentation for more information
Check the live demo application
https://github.com/greenlaw110/play-rythm
Written by Green Luo.
Published releases
1.0.0-20121210 | Dec 10 2012 | Documentation | Try Play |
1.0.0-20121128 | Dec 03 2012 | Documentation | Try Play |
1.0.0-20121110a | Nov 11 2012 | Documentation | Try Play |
1.0.0-20121110 | Nov 09 2012 | Documentation | Try Play |
1.0.0-20121106a | Nov 05 2012 | Documentation | Try Play |
1.0.0-20121106 | Nov 05 2012 | Documentation | Try Play |
1.0.0-20121103a | Nov 05 2012 | Documentation | Try Play |
1.0.0-20120815a | Aug 16 2012 | Documentation | Try Play |
1.0.0-20120814a | Aug 14 2012 | Documentation | Try Play |
1.0.0-20120806b | Aug 06 2012 | Documentation | Try Play |
1.0.0-20120718 | Jul 18 2012 | Documentation | Try Play |
1.0.0-20120717 | Jul 17 2012 | Documentation | Try Play |
1.0.0-20120716 | Jul 16 2012 | Documentation | Try Play |
1.0.0-20120704a | Jul 04 2012 | Documentation | Try Play |
1.0.0-20120704 | Jul 03 2012 | Documentation | Try Play |
1.0.0-20120703 | Jul 02 2012 | Documentation | Try Play |
1.0.0-20120630 | Jul 01 2012 | Documentation | Try Play |
1.0.0-RC8 | Jun 27 2012 | Documentation | Try Play |
1.0.0-RC7 | Jun 24 2012 | Documentation | Try Play |
1.0.0-RC6 | Jun 09 2012 | Documentation | Try Play |
1.0.0-RC5 | May 24 2012 | Documentation | Try Play |
1.0.0-RC4 | May 20 2012 | Documentation | Try Play |
1.0.0-RC3 | May 17 2012 | Documentation | Try Play |
1.0.0-RC2 | May 06 2012 | Documentation | Try Play |
1.0.0-RC1 | Apr 30 2012 | Documentation | Try Play |
0.9.7a | Mar 30 2012 | Documentation | Try Play |
0.9.7 | Mar 29 2012 | Documentation | Try Play |
0.9.6c | Mar 23 2012 | Documentation | Try Play |
0.9.6b | Mar 23 2012 | Documentation | Try Play |
0.9.6a | Mar 22 2012 | Documentation | Try Play |
0.9.6 | Mar 22 2012 | Documentation | Try Play |
0.9.5b | Mar 21 2012 | Documentation | Try Play |
0.9.5a | Mar 20 2012 | Documentation | Try Play |
0.9.5 | Mar 20 2012 | Documentation | Try Play |
0.9.4g | Mar 08 2012 | Documentation | Try Play |
To install locally this module use the install
command:
play install rythm-{version}
To add this module as dependency of your application, add it to the dependencies.yml file:
require:
- play -> rythm {version}