Nis Martensen wrote:
> Subject: [PATCH] Allow DATE as a template parameter (with format controlled 
> by dateformat setting)

>       timeformat => '%c',
> +     dateformat => '%x',

When ikiwiki internals deal with "time", it's being used in the sense of
perl's time function, ie, time from epoh AKA date. Or in the sense of a
timestamp. So it doesn't make a great deal of sense to try to draw a
time/date distinction with two sets of functions that really do the same
thing with the same data.

As to having two time formats, it might help me understand if I could
find a place on the cario wiki where two formats are used. So far all I
have found there is the %c format.

If the goal is to just have a different format available for inlined
timestamps, and it's ok if this is configured on a global basis,
a good (though long) name for it would be inlinetimeformat.

I wonder if it wouldn't make more sense to have it be configurable on a
per-directive basis though. Then you could do:

[[inline pages="news/*" timeformat="%x"]]

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to