Community contributed extensions

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:

  1. Static and strong typed pure Java template. Yes it’s like Japid and Jamon
  2. Razor like syntax
  3. Easy to integrate with Play and migrate your groovy template one by one
    1. Your existing controllers doesn’t need to be changed
    2. Your existing mailers doesn’t need to be changed
    3. Once an new template file under app/rythm folder created in the corresponding path, Rythm will take over; all other groovy templates still works
    4. Great Error reporting on parsing, compilation and excuting errors, using Play-2.0 style!
  4. Automatic escape expression output, like Groovy and unlike Japid
  5. High performance at Japid level
  6. Support layout and tag, you get all you have in Groovy template, actually even more
  7. Support FastTags and JavaExtensions with constraints
  8. Support properties enhancement to template class
  9. Tag invocation decorations and chain them together
  10. Template content decorations and chain them together
  11. Invoke controller action method directly from within your template
  12. Include other template inline (not the same as tag invocation)
  13. New Cache4 annotation to mark on controller action method
  14. Support GAE
  15. String Interpolation Mode
  16. ToString Mode
  17. AutoToString Mode
  18. 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}