]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/Set_arbitrary_date_to_be_used_by_calendar_plugin.mdwn
update diff (one redundant hunk removed)
[ikiwiki.git] / doc / todo / Set_arbitrary_date_to_be_used_by_calendar_plugin.mdwn
index a2643391927cfe399ad00a119dc5e25250b2f2b4..89167c084ea64e6fbde3167ed3aeca46cace3dd1 100644 (file)
@@ -42,13 +42,13 @@ Longer term plans:
                 my %cache;
                 my %linkcache;
                @@ -32,6 +34,7 @@
-                sub import { #{{{
+                sub import {
                        hook(type => "needsbuild", id => "version", call => \&needsbuild);
                        hook(type => "preprocess", id => "calendar", call => \&preprocess);
                +       hook(type => "preprocess", id => "event", call => \&preprocess_event);
-                } #}}}
+                }
                 
-                sub is_leap_year (@) { #{{{
+                sub is_leap_year (@) {
                @@ -58,6 +61,7 @@
                        my $nmonth   = $params{nmonth};
                        my $pyear    = $params{pyear};
@@ -137,9 +137,9 @@ Longer term plans:
                        # finish off the week
                @@ -304,6 +333,18 @@
                        return $calendar;
-                } #}}}
+                }
                 
-               +sub preprocess_event (@) { #{{{
+               +sub preprocess_event (@) {
                +       my %params=@_;
                +       # if now time is given, use now
                +       $params{begin} = localtime($time)            unless defined $params{begin};
@@ -151,7 +151,7 @@ Longer term plans:
                +       return "<!-- $params{begin} -->";
                +} #}}
                +
-                sub preprocess (@) { #{{{
+                sub preprocess (@) {
                        my %params=@_;
                        $params{pages} = "*"            unless defined $params{pages};
                @@ -311,6 +352,8 @@