这是我的解决方案:
在路由中:我做了如下配置.
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 controllers.Assets.at(path="/public/stylesheets", file="bootstrap.css")
然后文件结构如下:
public->HTML->hello.html
public->javascripts->jquery-1.9.0.min.js
public->stylesheets->bootstrap.css
对于hello.html,这是它的内容.
完成这三个步骤后,您可以直接使用外部HTML.无需按照Play模板进行前端开发工作.所以现在,Play只负责后端.前端开发人员只需要操作此公共文件来进行开发.