Here is my solution:
in routes: I do some configuration as follows.
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")
and then the file structure is as follows:
public->HTML->hello.html public->javascripts->jquery-1.9.0.min.js public->stylesheets->bootstrap.css
for hello.html, here is its contents.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel='stylesheet' type='text/css' href='/public/stylesheets/bootstrap.css'> </head> <body> <script src="/public/javascripts/jquery-1.9.0.min.js" type="text/javascript"></script> </body> </html>
After these three steps, you can directly use external HTML. You do not need to follow the game template to complete the work on developing the interface. So, now Play is only responsible for the work. Front-End developers only need to use this public file for development.
source share