2013-02-09から1日間の記事一覧
ScalaのフレームワークPlay Frameworkで遊んでるけど仕組みが未だによくわからないからメモを書きまくる。 app/views/main.scala.html @(title: String)(content: Html)(footer: Html) <html> <head> <title>@title</title> </head> <body> <div class="container"> @content @footer </div> </body> </html> この時、1行目の @(title)…
main.scala.htmlとindex.scala.htmlってなんで2つも存在してるのだろうと思ってた。 main.scala.html @(title: String)(content: Html) <html> <head> <title>@title</title> <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"> </link></head></html>
play new sample_scala play eclipsify→Eclipseで既存アプリケーションのimport即エラー(´・ω・`)org.scala-ide.sdt.core (943) 自動的に有効化している間にエラーが発生しました。Scalaを開こうとするたびにダイアログが出てエラー ウインドウから設定開こ…