2014-02-09から1日間の記事一覧

Perl - Amon2::Plugin::Web::Text

https://github.com/shoichikaji/Amon2-Plugin-Web-Text text/plain な response を返したいときがよくあるので plugin にしてみた。 SYNOPSIS use Amon2::Lite; __PACKAGE__->load_plugins('Web::Text'); get '/' => sub { my $c = shift; return $c->rende…