@anzaui/engine - v0.6.0
    Preparing search index...

    Class Document

    A rendered full HTML page, returned by Page.run and Engine.renderPage. Send html as the response body (the adapters accept a Document directly).

    const doc = await new Page('/', { title: 'Home' }).run(engine);
    return htmlResponse(doc); // text/html; charset=utf-8
    Index
    html: string

    The complete HTML document, starting with <!DOCTYPE html> when a shell or the default document is used.

    • The HTML, so a Document can be used where a string is expected.

      Returns string