LiftWebFramework
概要
Scalaで作成されたWeb Framework
公式サイト
http://github.com/dpp/liftweb/
関連サイト
http://groups.google.com/group/the-lift-book
Hello World 作成
Starting withLiftを参考にして最初のアプリを作ると良いかと思います。
mvn archetype:create -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=1.0 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=test.hoge.example \
-DartifactId=helloworld
cd helloworld
mvn jetty:run
http://localhost:8080/
にアクセスして、「Welcome to your project!」な画面が表示されれば成功です。
とりあえず静的な HTML を表示する場合は、
src/main/webapp
に入れて、
http://localhost:8080/hello.html
でアクセスすると見える。(jettyを再起動しないと見えない?)
src/main/scala/bootstrap/liftweb/Boot.scala
を編集するとメニューに出すことも可能。Boot.scala は起動時にしか読まれないので、jettyの再起動が必須。
sbt
WebApplicationExample - simple-build-tool - Project Hosting on GoogleCode
Lift 2.0-scala280-SNAPSHOT/sbt0.7.1 |ブログ.武田ソフト.jp
