Search code examples
scalaviewliftplaintext

How to return a plain text string back to browser in lift views?


I would like to return plain-text back to browser in a lift view like this:

import scala.xml.Text    
def csv_export_status_check: NodeSeq = {
    Text("my text")
}

But the "my text" just does not show at all.

Am I doing it wrong?


Solution

  • I tried the following, and it worked:

    def render =
      xml.Text("aoeu")
    

    Actually, your version should work as well - maybe there is some other problem?