A_single_file_wiki_wifky2.png

ץ饰ˤĤ

[Add this entry to hatena bookmark]

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');
}

|

Designed for @nifty.