On Sun, 08 Dec 2019 17:05:07 GMT, Erdem wrote:

HTTPServerRequestDelegate staticI18NTemplate(string file)()
{
    return (HTTPServerRequest req, HTTPServerResponse res) {
        renderI18NTemplate!(file)(req, res);
    };
}

I changed the function decleration on the line that gives an error.

@safe void delegate(HTTPServerRequest req, HTTPServerResponse res)  staticI18NTemplate(string file)()
{
    return  (HTTPServerRequest req, HTTPServerResponse res) {
        renderI18NTemplate!(file)(req, res);
    };
} 

I've also changed

shared static this()
{
  /* .. */
}

the main function.

void main()
{
   /* ... */
}

This time the application was compiled.

But I've noticed that the application was running in the background.

I've tried to kill application, reboot computer but nothing changed.

When I check the background applications, application is still running in the background.

$ ps aux | grep program_name

The PID number of the application keeps changing.