From 7d977499baa0d378a99001b3cd1eade118d5a943 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 30 Dec 2024 10:31:23 -0500 Subject: [PATCH] static array support --- cgi.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgi.d b/cgi.d index 7ef7e7d..5cb3a87 100644 --- a/cgi.d +++ b/cgi.d @@ -622,6 +622,8 @@ version(Posix) { } else { version(FreeBSD) { + // not implemented on bsds + } else version(OpenBSD) { // I never implemented the fancy stuff there either } else { version=with_breaking_cgi_features; @@ -10742,7 +10744,7 @@ html", true, true); return dl; } else static if(is(T == bool)) { return Element.make("span", t ? "true" : "false", "automatic-data-display"); - } else static if(is(T == E[], E)) { + } else static if(is(T == E[], E) || is(T == E[N], E, size_t N)) { static if(is(E : RestObject!Proxy, Proxy)) { // treat RestObject similar to struct auto table = cast(Table) Element.make("table");