Does scalatra use circumflex per scene (or vice versa)? What are the main differences between them and which one would you use?
Both frameworks are inspired by Sinatra and look the same at first glance.
Request routing with scalar:
class ScalatraExample extends ScalatraServlet { get("/date/:year/:month/:day") { <ul> <li>Year: {params("year")}</li> <li>Month: {params("month")}</li> <li>Day: {params("day")}</li> </ul> }
Example code in circumflex:
class Main extends RequestRouter { get("/posts/:id") = "Post #" + uri("id") } }
rest scala scalatra
Vasil Remeniuk
source share