Jade <http://scalate.fusesource.org/documentation/jade.html> in scalatra<http://www.scalatra.org/>+ twitter bootstrap <http://twitter.github.com/bootstrap/> + backbone.js<http://backbonejs.org/>
Mostly, the client-side code is implemented in JavaScript, but I find that Jade is particularly efficient at producing elements with the css classes that bootstrap uses. Scalatra then gives a very clean routing definition and, with the Akka support<https://github.com/scalatra/scalatra/blob/develop/akka/src/main/scala/org/scalatra/akka/AkkaSupport.scala>and Futures <http://doc.akka.io/docs/akka/2.0.2/scala/futures.html>, one of the cleanest solutions I've seen for implementing an asynchronous 3.0 servlet. Admittedly, I'm running on a full Scala stack. But there's absolutely nothing to prevent you from using Scala for just the routing definition + templates, and Java for everything else. Even if you wanted to use the async/future capabilities, Akka has a very good Java API<http://doc.akka.io/docs/akka/2.0.2/java/futures.html>available. On 9 August 2012 14:56, [email protected] <[email protected]>wrote: > I'd like to hear people sharing their experience with java-based webapps > and using templates that are not JSP or anything in the > JSTL-Velocity-Freemarker world. > > We're running a few webapps (some spring-based, but not all of them) and > from the front-end room we only hear cursing and crying, so to speak. > > These guys are very good html/css/js developers and had enough of jsp/jstl. > > We've been trying to de-couple a little bit and started experimenting with > other stuff. > > I personally tried scalate <http://scalate.fusesource.org> and liked it > but I'd like to hear more from anybody who's using these things fulltime. > > Handlebars, Mustache, Angular... you name it. How do they integrate with a > java webapp? > > Also, since we deploy our war on glassfish, how could we set it up so that > front-end changes WON'T need re-deploy? > > ps: Scalate guys suggest to ask this question beforehand: Who edits the > templates?<http://scalate.fusesource.org/which.html#Who_edits_the_templates_> > Maybe > it's the right question to ask. > > pps: no, we're not moving to Play or Scala or Rails > > -- You received this message because you are subscribed to the Google Groups "Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
