playframework 2.0 - How to serve XHTML 5 from Play 2? -


is there special have do? adding xmlns attribute template not sufficient.

for scala, in controller(s), add:

import play.api.http.contenttypeof import play.api.templates.html  implicit val xhtml = contenttypeof[html](some("application/xhtml+xml")) 

in templates, ensure have:

<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> 

and html (including generated html passed template) well-formed xml.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -