Explorer

html-ui.not-found

description
type
Fn(language: String, path: String) -> @definy.service-io
expression
fn(language$990, path$0) =>
  #done<@definy.service-io>(#respond({
    status: 404,
    headers: [
      {name: "content-type", value: "text/html; charset=utf-8"},
      {name: "cache-control", value: "no-store"}
    ],
    body: #text<@definy.http-body>(@html.document-to-string(
      root: @html.element(
        name: "html",
        attributes: [{name: "lang", value: $990}],
        children: [
          @html.element(
            name: "head",
            attributes: [],
            children: [@html.element(name: "meta", attributes: [{name: "charset", value: "utf-8"}], children: [])]
          ),
          @html.element(
            name: "body",
            attributes: [],
            children: [
              @html.element(
                name: "p",
                attributes: [],
                children: [
                  @html.text(text: $0),
                  @html.text(
                    text: @html-ui.text(language: $990, en: " was not found. ", ja: " は見つかりません. ", eo: " ne troviĝis. ")
                  ),
                  @html.element(
                    name: "a",
                    attributes: [{name: "href", value: "/"}],
                    children: [
                      @html.text(text: @html-ui.text(language: $990, en: "Top", ja: "トップへ", eo: "Al la komenco"))
                    ]
                  )
                ]
              )
            ]
          )
        ]
      )
    ))
  }))
visibility
public
html-ui.not-found (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ)
id: BWXnwKA819fHyoBd61h7yoWkPzGRHfHTd_Nr9o8zWtQ
content hash: 5xKHbfajCRBi9fbVmg2TivRZOfZ_5ERch7GjGqvsBrE