import dgi.Api; import dgi.plates.Api; void main () { // IMPORTANT! // because the cookie uses a header, it must be called before dgi_begin() setCookie("cookieName","cookieValue",time(null) + 360000 /* 1 hour */ ); dgi_begin(); const char [] html = import("cookie.html"); const char [] code = plateFile(html); mixin(code); dgi_end(); }