1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #!/usr/bin/env plackup use strict; use warnings; use utf8; use parent 'Malts::Lite'; get '/' => sub { my $self = shift; $self->res_200('index.tx'); }; # 上書き sub res_404 { $self->render(404, '404.tx'); } __PACKAGE__->start; __DATA__ @@ index.tx <!doctype html> <html> <head> <meta charset="utf-8" /> <title>hello malts</title> </head> <body> : block body -> { hello malts lite! : } </body> </html> @@ 404.tx : cascade 'index.tx' : override body -> { 404! : } |
考えたけど作ってない。

hisaichi5518がPerlを書いて、つついて、イチャイチャするブログ。最近はnode.jsもやってる。



最近の記事
最近のコメント
リンク
ページ
カテゴリ
アーカイブ
タグ一覧