On Sunday, 25 March 2012 at 20:12:16 UTC, dnewbie wrote:
I can't compile web.d

Oh yeah, Phobos loves removing perfectly good functionality.

Just open the file and comment out that function.

Make it simply:

string date(string replacement, string[], in Element, string) {
/*
                auto date = to!long(replacement);

                import std.date;

                auto day = dateFromTime(date);
                auto year = yearFromTime(date);
                auto month = monthNames[monthFromTime(date)];
replacement = format("%s %d, %d", month, day, year);
*/
                return replacement;
        }


and it will be fine. That function isn't really needed,
it is just one of the template formatting options.


Eventually, I'll port it to the monster that is std.datetime
but I'm not in a big rush.

Reply via email to