]> sipb.mit.edu Git - ikiwiki.git/commitdiff
suggestion on formatted times
authorchrysn <chrysn@fsfe.org>
Sat, 5 Jul 2014 16:08:08 +0000 (18:08 +0200)
committerchrysn <chrysn@fsfe.org>
Sat, 5 Jul 2014 16:08:08 +0000 (18:08 +0200)
doc/todo/edittemplate_should_support_uuid__44___date_variables.mdwn

index e88f0cc9df3dd09ad8e24d825addf0b4fbe1e87b..73f04adf0605b026442e7a049a655105ec9f65a9 100644 (file)
@@ -70,3 +70,10 @@ Changes to the structure of `$pagestate{$registering_page}{edittemplate}{$pagesp
 >>> timestamp variables/objects, so I left the naming as it was.
 >>>
 >>> --[[smcv]]
+
+>>>> the ready/edittemplate branch looks good to me too. `formatted_time` and
+>>>> `html_time` probably don't hurt, but personally i'd not add either and
+>>>> instead expose displaytime as a directive, for otherwise migrating to
+>>>> html5 would leave old evaluations of displaytime around in the repository.
+>>>> (example template: `\[[!meta date="<TMPL_VAR time>"]]I wrote this post at
+>>>> \[[!displaytime "<TMPL_VAR time>"]]`). --[[chrysn]]