D web apps: cgi.d now supports scgi

Adam D. Ruppe destructionator at gmail.com
Sun Mar 25 13:24:38 PDT 2012


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.


More information about the Digitalmars-d-announce mailing list