How can I render a simple html page using play framework?
问题 Is it a way to render a pure html file with play framework version 2? I don't want to put it in public/ folder because later on there will be some dynamic information added to it. 回答1: Here is my solution: in routes: I do some configurations as following. GET /hello.html controllers.Assets.at(path="/public/html", file="hello.html") GET /public/javascripts/jquery-1.9.0.min.js controllers.Assets.at(path="/public/javascripts", file="jquery-1.9.0.min.js") GET /public/stylesheets/bootstrap.css