Changeset 12891
- Timestamp:
- 05/31/08 11:37:53 (5 years ago)
- Location:
- lang/perl/mobirc/trunk
- Files:
-
- 1 added
- 3 modified
-
CONCEPT (modified) (1 diff)
-
lib/App/Mobirc/HTTPD/C/Ajax.pm (modified) (1 diff)
-
lib/App/Mobirc/HTTPD/Template/Ajax.pm (modified) (1 diff)
-
t/HTTPD/Template/Ajax/channel.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/mobirc/trunk/CONCEPT
r12863 r12891 1 ■コアコンセプト 2 - 綺麗なコード 3 - CPAN モジュールはいっぱいつかっていい 4 5 ■etc. 1 6 - HTTPD::Template の中身はけっして req, res に関する情報を知ってはいけない。 2 7 -- module の独立性をたもつため 3 8 - C からよばれる Template はすべて validate() をつかう 4 9 - MooseX::Plaggerize をつかう -
lang/perl/mobirc/trunk/lib/App/Mobirc/HTTPD/C/Ajax.pm
r12883 r12891 25 25 $c, 26 26 'ajax/channel' => ( 27 $channel,28 irc_nick 27 channel => $channel, 28 irc_nick => irc_nick, 29 29 ) 30 30 ); -
lang/perl/mobirc/trunk/lib/App/Mobirc/HTTPD/Template/Ajax.pm
r12674 r12891 116 116 117 117 template 'ajax/channel' => sub { 118 my ($self, $channel, $irc_nick) = @_; 118 my $self = shift; 119 my %args = validate( 120 @_ => { 121 channel => 1, 122 irc_nick => 1, 123 }, 124 ); 119 125 div { 120 for my $message ($ channel->message_log) {121 show '../irc_message', $message, $ irc_nick;126 for my $message ($args{channel}->message_log) { 127 show '../irc_message', $message, $args{irc_nick}; 122 128 br { }; 123 129 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)