hook(type => "preprocess", id => "calendar", call => \&preprocess);
} #}}}
-sub is_leap_year (@) { #{{
+sub is_leap_year (@) { #{{{
my %params=@_;
return ($params{year} % 4 == 0 && (($params{year} % 100 != 0) || $params{year} % 400 == 0));
} #}}}
add_depends($params{page}, join(" or ", @list));
return $calendar;
-}
+} #}}}
-sub format_year (@) {
+sub format_year (@) { #{{{
my %params=@_;
my $pagespec = $params{pages};
EOF
return $calendar;
-}
+} #}}}
-sub preprocess (@) {
+sub preprocess (@) { #{{{
my %params=@_;
$params{pages} = "*" unless defined $params{pages};
$params{type} = "month" unless defined $params{type};
}
return "\n<div class=\"calendar\">$calendar</div><!-- calendar -->\n";
-}
+} #}}
1