Does Play Framework 2.0 have any built-in equivalent to 1.2.x's jsAction?
If not, how can I create such a tag?
Update: Thanks to Julien Richard-Foy who got me on the right track, I was able to use javascriptRouter. However, Play 2.0 doesn't provide any examples on how to use it in their manuals, so I made an example on how it is used in Java.
Yes, there is a play.api.Routes
object providing a way to generate a JavaScript reverse router. There also is a template tag, helper.javascriptRouter
, which can be used directly in the templates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With