As you might know, I use the lift framework a lot – I recently came across a strange issue where I couldnt set my own doctype in the layout template. Maybe this nugget of information will be usefull for someone:


ResponseInfo.docType = { 
      case _ if S.getDocType._1 => S.getDocType._2 
      case _ => Full(DocType.xhtmlStrict) 
    }

/*
Avalible options are:

xhtmlTransitional
xhtmlStrict
xhtmlFrameset
xhtml11
xhtmlMobile

*/

Sorry, comments are closed for this article.