1

How can I tell Play to compile templates immediately after saving the template file? This would be useful to pick up changes of template constructor without leaving Eclipse to hit refresh in the browser.

om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
deamon
  • 89,107
  • 111
  • 320
  • 448

1 Answers1

4

Simply use the ~run or ~compile command:

In your shell

$ play

In the play console

~run

or directly in the shell

$ play ~run
deamon
  • 89,107
  • 111
  • 320
  • 448
Julien Lafont
  • 7,869
  • 2
  • 32
  • 52
  • 1
    Thanks. Life can be so easy! For other readers: [Play SBT documentation](http://www.playframework.org/documentation/2.0.4/PlayConsole) – deamon Jan 12 '13 at 11:50
  • @biesior Thanks, I thought that it didn't work directly, but you're right ! – Julien Lafont Jan 12 '13 at 14:11
  • @JulienLafont NP :) There is some mismatch when you want to use additional settings (i.e. non default port) - but it can be solved as well with proper use of quotas. – biesior Jan 12 '13 at 14:21