ץ饰ˤĤ
http:///wifky.pl?a=ǽ̾פȸƤӽФˡ ΥΥץ饰Ǥ
$::action_plugin{'rss'} = sub{ # ¹ԥ };
ּ¹ԥɡפǤϡƼؿȤäơHTMLϤޤ
ץ
$::action_plugin{'ޥ̾'} = sub { if( defined &::print_template ){ ### 1.3 ʹߤΥƥץ졼ȵǽݡȤ ### &::print_template( # ɥС̵Υƥץ졼Ȥ $::system_template Ȥ # ɥСͭξ $::user_template Ȥ template => $::system_template , # <h1></h1>ɽ륿ȥ Title => 'ȥ' , # إåȥեåδ֤ʸϤؿؤλ main => \&print_body , ); }else{ ### 1.2 ޤǤ̤ư륳 ### # ɥС̵ξϡʲΤ褦ˡ # ɥСͭξ ``userheader=>1`` Ȥä롣 # divclass ΤϤ <div>Υ饹άȡmain Ȥʤ롣 # (ɥС̵ξ max , ɥСͭλϾά٤) &::print_header( divclass=>'max' , title=>'<h1>Υȥ' ); # إåȥեåδ֤ʸϤؿƤӽФ &print_body(); # եåϤ롣 &::print_copyright; &::print_footer; } }; sub print_body{ &::puts('ɽ HTML'); }
|