For Java applications based on play 2.0, can I use groovy templates instead of scala?
•
Java
I'm the new play 2.0, and it's hard for me to understand the scala template used to create views
Solution
Yes, there is a module available for groovy:
I've found that Scala templates won't be too bad after a week of using them - especially if you use Scala in the controller section You may consider sticking to the learning curve
Add comments:
object ApplicationBuild extends Build { ... val appDependencies = Seq( "eu.delving" %% "groovy-templates-plugin" % "1.1" ) val main = PlayProject(appName,appVersion,appDependencies,mainLang = SCALA).settings( resolvers += "Delving Snapshot Repository" at "http://development.delving.org:8081/nexus/content/repositories/snapshots",resolvers += "Delving Releases Repository" at "http://development.delving.org:8081/nexus/content/groups/public" ) }
Work for me
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码