From c21ca0de839531249cf5aa6f3efcb98a0381adfb Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 9 Jul 2019 09:23:20 -0400 Subject: [PATCH] new convenience func --- webtemplate.d | 1 + 1 file changed, 1 insertion(+) diff --git a/webtemplate.d b/webtemplate.d index c5d6ee0..cfb9d36 100644 --- a/webtemplate.d +++ b/webtemplate.d @@ -50,6 +50,7 @@ Document renderTemplate(string templateName, var context = var.emptyObject, var }; context.dayOfWeek = function string(string s) { + import std.datetime; return daysOfWeekFullNames[DateTime.fromISOExtString(s).dayOfWeek]; };