play!framework

Play!の組込みテンプレートタグで、オブジェクトの渡し方

Play!の組込みテンプレートタグで、引数渡すのに 少し迷ったのでメモ。controllers/Application.java public static void index() { List<Category> categories = Category.findAll(); render(categories); } view/Application/index.html <div class="container-fluid"> <div class="row-fluid"> <div class="span3"> </div></div></div></category>

Play!framework on Heroku を試す。

環境はMacOS Lion。 Play!をダウンロード。(1.2.5.zip) http://playdocja.appspot.com/download パスを通す。 $ vim ~/.bash_profile PATH=$PATH:/Users/xxxxx/play-1.2.5 $ source ~/.bash_profile パスが通ってるの確認 $ play ~ _ _ ~ _ __ | | __ _ _ _|…