動的ページを作る - lift
src/main/webapp/にhtmlファイルを作る。ファイル名はなんでもOK。
ただし、UTF-8で保存しないとなぜかjava.lang.OutOfMemoryErrorが出る。
<html xmlns="http://www.w3.org/1999/xhtml"> <body> <h1>日本語も使える</h1> <lift:snippet type="HelloWorld:howdy" /> </body> </html>
HelloWorldクラスは、sandbox.lift.hellodarwin.snippetに次のように定義されている。
class HelloWorld { def howdy = <span>Welcome to hellodarwin at {new java.util.Date}</span> }
もちろん自作することもできる。
続く...(たぶん)