Take the following example :
package com.example.app
import org.scalatra._
import scalate.ScalateSupport
class MyServlet extends ScalatraServlet with ScalateSupport {
get("/") {
<html>
<body>
<h1>Hello, world!</h1>
Say <a href="hello-scalate">hello to Scalate</a>.
</body>
</html>
}
}
Is this a DSL? i am wondering about the mechanism of how this work.