Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
back to simple parser; package extension example
- Loading branch information
jto
committed
Jul 9, 2012
1 parent
79edb6a
commit 8b8cc33
Showing
5 changed files
with
34 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
sample/.g8/global/app/$package;format=packageDir$/$className$.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
package $package$ | |||
|
|||
import play.api._ | |||
|
|||
object $className$ extends GlobalSettings { | |||
|
|||
override def onStart(app: Application) { | |||
Logger.info("Application has started") | |||
} | |||
|
|||
override def onStop(app: Application) { | |||
Logger.info("Application shutdown...") | |||
} | |||
|
|||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
className=Global | |||
package=global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1 @@ | |||
className=Application | className=User | ||
package=models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters