Opt. Custom Application

How to modify default setting in Application when we new one?

When we new a web application, the play copy ${play.path}/resources/application-skel/* to our target directory



So if we want to modify some setting, like update jquery version(default is 1.4.2 in play 1.1), we can edit file in ${play.path}/resources/application-skel/*

Update jquery version Example:
  1. move jquery-1.4.4.min.js to ${play.path}/resources/application-skel/public/javascripts/ 
  2. delete jquery-1.4.2.min.js
  3. modify ${play.path}/resources/application-skel/views/main.html
    1. <script src="@{'/public/javascripts/jquery-1.4.2.min.js'}" type="text/javascript" charset="utf-8"></script> change to <
    2. script src="@{'/public/javascripts/jquery-1.4.4.min.js'}" type="text/javascript" charset="utf-8"></script>
now, you can create new app to check if jquery update

Comments