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 - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -