crashed-builder-body ( crashed-builders -- string content-type )


Vocabulary
webapps.mason.backend.watchdog

Inputs
crashed-buildersan object


Outputs
stringan object
content-typean object


Definition


: crashed-builder-body
( crashed-builders -- string content-type )
[
os/cpu 1 nenum T{ xml-chunk
{ seq
V{
""
T{ tag
{ name ~name~ }
{ children ~vector~ }
}
""
}
}
} interpolate-xml
] map 1 nenum T{ xml
{ prolog
T{ prolog { version "1.0" } { encoding "UTF-8" } }
}
{ before
V{ T{ doctype-decl { name "html" } } "\n " }
}
{ body
T{ tag
{ name
T{ name
{ space "" }
{ main "html" }
{ url "" }
}
}
{ children
V{ "\n " ~tag~ "\n " }
}
}
}
{ after V{ "" } }
} interpolate-xml xml>string "text/html" ;