トップ «前の日記(■2005-11-07) 最新 次の日記(■2005-11-16)» 編集

どんぞこ日誌

2003|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|07|08|12|
2007|01|04|08|12|
2008|01|02|03|04|06|07|08|10|11|12|
2009|01|02|04|05|06|07|08|09|11|12|
2010|01|03|04|07|08|10|11|12|
2011|01|02|03|04|05|06|07|08|10|12|
2012|01|02|03|05|06|07|08|09|10|
2013|01|02|07|08|09|
2014|08|09|
2015|08|
2016|06|07|12|
2017|01|03|08|
2018|03|
2022|03|
2023|03|
2024|02|

同人関連(どんぞこ楽屋) | 旧い雑文   


■2005-11-14

* [今月のAcme] Web2.0に挑戦することB!

  自分のサイトがWeb2.0かどうかチェックしてくれるAcme::Web20::Validatorなるものが。早速私のサイトをチェックしてみました。

 http://www.donzoko.net/
 .------------------------------------------+--------.
 | Rule                                     | Result |
 |=-----------------------------------------+-------=|
 | Served by lighttpd?                      | No     |
 | Attempts to be XHTML Strict?             | No     |
 | Has auto-discoverable Trackback URI?     | No     |
 | Using Cascading Style Sheet?             | Yes!   |
 | Refers to del.icio.us?                   | No     |
 | Appears to be built using Catalyst?      | No     |
 | Appears to be built using Ruby on Rails? | No     |
 | Has prototype.js?                        | No     |
 | Actually mentions Web 2.0?               | No     |
 | Burning the feed by FeedBurner?          | No     |
 | Syndicate with RSS or Atom feeds?        | Yes!   |
 '------------------------------------------+--------'

 なんだか残念な結果です(何が残念なのかよくわかりませんが)。 何とかお手軽に自分のサイトのWeb2.0度を上げることはできないでしょうか? 縮退炉に勝てるのは縮退炉だけであるように、Acmeに勝てるのはAcmeだけ。そこでAcme::CGI::Web2'Oをこさえてみました。使い方は簡単。CGIモジュールの代わりに利用するだけです。

 use strict;
 use Acme::CGI::Web2'O;
 
 my $cgi = new Acme::CGI::Web2.0;
 
 print $cgi->header;
 print $cgi->web2.0;

  一見すると文法間違いのように見えますが、気のせいです。結果はごらんの通り。

 http://www.donzoko.net/cgi-bin/web/2.0.cgi
 .------------------------------------------+--------.
 | Rule                                     | Result |
 |=-----------------------------------------+-------=|
 | Served by lighttpd?                      | No     |
 | Attempts to be XHTML Strict?             | Yes!   |
 | Has auto-discoverable Trackback URI?     | Yes!   |
 | Using Cascading Style Sheet?             | Yes!   |
 | Refers to del.icio.us?                   | Yes!   |
 | Appears to be built using Catalyst?      | Yes!   |
 | Appears to be built using Ruby on Rails? | Yes!   |
 | Has prototype.js?                        | Yes!   |
 | Actually mentions Web 2.0?               | Yes!   |
 | Burning the feed by FeedBurner?          | Yes!   |
 | Syndicate with RSS or Atom feeds?        | Yes!   |
 '------------------------------------------+--------'

  見習ってModule::Pluggableを使い、Acme::Web20::ValidatorのRuleに対抗するようになっています。

[]