mirror of https://github.com/adamdruppe/arsd.git
new convenience func
This commit is contained in:
parent
ed20829686
commit
c21ca0de83
|
@ -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];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue