Takuji->find;

株式会社はてなでアプリケーションエンジニアやってます、技術的な記事を書いているつもり

Plack/PSGIに対応した軽量Web Application Framework「Chiffon」

記念すべき技術系ブログ最初のネタに迷った挙げ句、自分が書いてるWAFのことを書くことにした。

ChiffonはPlack/PSGIに対応したSledge系のWAFです。


ソースはこちら→Chiffon

takuji@sakura% chiffon.pl MyApp
Bake project MyApp...
Write file /home/takuji/MyApp/app.psgi
Write file /home/takuji/MyApp/config.pl
Write file /home/takuji/MyApp/lib/MyApp.pm
Write file /home/takuji/MyApp/lib/MyApp/Container.pm
Write file /home/takuji/MyApp/lib/MyApp/Web.pm
Write file /home/takuji/MyApp/lib/MyApp/Web/Context.pm
Write file /home/takuji/MyApp/lib/MyApp/Web/Dispatcher.pm
Write file /home/takuji/MyApp/lib/MyApp/Web/Request.pm
Write file /home/takuji/MyApp/lib/MyApp/Web/Response.pm
Write file /home/takuji/MyApp/lib/MyApp/Web/C/Root.pm
Write file /home/takuji/MyApp/assets/template/layout.html
Write file /home/takuji/MyApp/assets/template/root/index.html

みたいな感じでひな形を作ってくれる。

あとは作ったディレクトリ以下で

takuji@sakura% plackup -I ./lib -p 8088                                                                                                                                                                                                                                

とかやってやると他のWAFと同じように使えます。

1つだけ依存モジュールがCPANにないので、これは手動でインストールしてください。
Object::Container::Namespace

細かい使い方とかは次回以降で。