I have a template like the following:
val outMsg = s"${outMap.mkString("<p/>\n")}"
if (returnMode.equalsIgnoreCase("HTML")) {
response.setContentType("text/html")
displayPage("Keywords Query Results:",
// <p>Query: {jsonObject.get.toString}</p>
<p>Return:
{outMsg}
Now what gets sent to browser:
419 iphone ( 2015-05-01 )<p/>
381 iphone ( 2015-05-01 Texas)<p/>
259 iphone ( 2015-05-01 NY)<p/>
148 iphone ( 2015-05-01 Tx)<p/>
131 iphone ( 2015-05-01 CA)<p/>
129 android ( 2015-05-01 TX)<p/>
How to instruct scalatra to "leave the text alone" and send it to browser as-is ?
Update Notice that the code above is inside DisplayPage - which apparently does not allow the macros/markup. I need to understand why the sample programs even use the displayPage at all -and what a better alternative will be.