Ceylon hitting 1.0 caught my attention lately. The most interesting feature is that it can be compiled for both the JVM and Javascript engines (node.js, browsers) so it makes code sharing possible from the beginning between the server backend and web application running in the browser.
I've started looking up the documentation for details how to create a WAR deployable application with Ceylon where i have some REST endpoints serving stuff to the browser side. I was not expecting Spring WebMVC support although this would be my final goal. For my surprise i didn't find anything useful in this topic. Is there any recommendations how to use Ceylon when i try to target a Servlet engine like Jetty or Tomcat the way i've described?
Right now i'm doing the following in a Java application:
- Create a Maven webapp project
- Put JQuery Javascript client code and other static stuff to src/main/webapp
- Write some Spring MVC controllers to server JSON resources
A similar thing would be great where the client code is transposed from Ceylon code aswell. As i see Ceylon uses it's very own project layout and build system although i would be more happy to use Maven or Gradle to not steer away too much from existing projects.