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

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -