Browse files

package dir

  • Loading branch information...
1 parent 531dfea commit 36af3811662ab828635925b1c460e78e70837b13 @jlarmstrong jlarmstrong committed Feb 3, 2012
Showing with 0 additions and 24 deletions.
  1. +0 −24 src/main/g8/src/main/scala/$servlet_name$.scala
View
24 src/main/g8/src/main/scala/$servlet_name$.scala
@@ -1,24 +0,0 @@
-package $package$
-
-import org.scalatra._
-import scalate.ScalateSupport
-
-class $servlet_name$ extends ScalatraServlet with ScalateSupport {
-
- get("/") {
- <html>
- <body>
- <h1>Hello, world!</h1>
- Say <a href="hello-scalate">hello to Scalate</a>.
- </body>
- </html>
- }
-
- notFound {
- // Try to render a ScalateTemplate if no route matched
- findTemplate(requestPath) map { path =>
- contentType = "text/html"
- layoutTemplate(path)
- } orElse serveStaticResource() getOrElse resourceNotFound()
- }
-}

0 comments on commit 36af381

Please sign in to comment.