Angelosの始め方

スケルトンの生成

$ angelos generate --name MyApp

$cd MyApp

# ここはModule::SetupのPluginで自動でできるようにする

$ chmod 700 bin/server

開発サーバーの起動

開発サーバーの起動
$ bin/server

デバッグモードでの起動
$ ANGELOS_DEBUG=1 bin/server

開発

ルーティング

pathとController, actionへのマッピングを規定.
RailsライクなRoutingを規定する

$ vim conf/routes.pl

HTTP::Router->define(
    sub {
        $_->match('/')->to( { controller => 'Root', action => 'index' } );
    }   
);

複数のルールを書く場合

HTTP::Router->define(
    sub {
        $_->match('/')->to( { controller => 'Root', action => 'index' } );
        $_->resources('Book');
    }   
);

see also: HTTP::Router

Controller

package MyApp::Controller::Hello;
use Mouse;
extends 'Angelos::Controller';

sub welcom {
   # /share/root/templates/hello/welcome.tt is used
   $c->view('TT')->render;
}

See also: MyApp::Controller::Root
  • twitter
  • livedoor クリップ
  • はてなブックマーク
  • delicious
  • Yahoo! ブックマーク
  • niftyブックマーク
  • Buzzurl

このページへのコメント




牛の乳しぼるみたいな手つきで手コキされたおかげで
遅漏の俺が5分でチムポからミルクしぼられた件wwwwwwww

その後も目隠しされた状態で四つんばいなって後ろから手コキ攻めされる始末w
オレのドM魂に火ぃ着いちまったジャマイカ・・・・( ;∀;)

てかこんだけアゲてもらっときながら更に12マン貰う俺って鬼畜?wwww

Posted by 牛魔王 2009年11月06日(金) 16:19:16
http://tao.chala-head.com/t8oedfu/

Wiki内検索

Menu

ダウンロード
インストール?
クイックスタート?

Wikiをはじめる

マイページ