mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +03:00
png reworking
This commit is contained in:
parent
84832e6f86
commit
0ef6ebd977
9 changed files with 1222 additions and 1008 deletions
11
web.d
11
web.d
|
@ -2056,11 +2056,12 @@ string toHtml(T)(T a) {
|
|||
ret = a.toString();
|
||||
} else
|
||||
static if(isArray!(T) && !isSomeString!(T)) {
|
||||
static if(__traits(compiles, typeof(T[0]).makeHtmlArray(a)))
|
||||
ret = to!string(typeof(T[0]).makeHtmlArray(a));
|
||||
else
|
||||
foreach(v; a)
|
||||
ret ~= toHtml(v);
|
||||
static if(__traits(compiles, typeof(a[0]).makeHtmlArray(a))) {
|
||||
ret = to!string(typeof(a[0]).makeHtmlArray(a));
|
||||
} else {
|
||||
foreach(v; a)
|
||||
ret ~= toHtml(v);
|
||||
}
|
||||
} else static if(is(T : Element))
|
||||
ret = a.toString();
|
||||
else static if(__traits(compiles, a.makeHtmlElement().toString()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue