scala - Why is it possible to write HTML inside Scalatra? -
take following example :
package com.example.app import org.scalatra._ import scalate.scalatesupport class myservlet extends scalatraservlet scalatesupport { get("/") { <html> <body> <h1>hello, world!</h1> <a href="hello-scalate">hello scalate</a>. </body> </html> } }
is dsl? wondering mechanism of how work.
scala natively supports xml syntax and, extension, xhtml. no dsl, language feature.
Comments
Post a Comment