It seems that the corresponding code is in the framework/src/play/src/main/scala/system/ApplicationProvider.scalaPlay 2.0 directory, especially in the classroom ReloadableApplication. I'm not sure how this compiler will work on the fly for you, because you do not want to do this when a template is requested (it is slow). This means that storing in the database does not make much sense: you do not want to store the source code of the template, but rather a compiled template object.
For arguments, if you just wrote templates in a directory app/views, you can leave Play to compile them at your leisure. But then be careful, because they probably won’t compile in the production system.
source
share