]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/cdate_and_mdate_available_for_templates.mdwn
applied
[ikiwiki.git] / doc / todo / cdate_and_mdate_available_for_templates.mdwn
1 [[!tag wishlist]]
2
3 `CDATE_3339`, `CDATE_822`, `MDATE_3339` and `MDATE_822` template variables would be useful for evey page, at least for my templates with Dublin Core metadata.
4
5 I tried to pick the relevant lines of the [[inline|plugins/inline]] plugin and hack it into a custom plugin, but it failed miserably because of my obvious lack of perl litteracy...
6
7 Anyway, I'm sure this is almost nothing...
8
9 * `sub date_822 ($) {}`
10 * `sub date_3339 ($) {}`
11 * and something like `$template->param('cdate_822' => date_822($IkiWiki::pagectime{$page}));`
12
13 Anyone can fill the missing lines?
14
15 -- [[nil]]