;; Extension — full HTML page wrapper. (st-bootstrap-classes!) (content/bootstrap!) (define d (doc-with-title (doc-append (doc-empty "post") (mk-heading "h" 1 "Hi")) "My Title")) (content-test "page" (content/page d) "My Title

Hi

") (content-test "page title escaped" (content/page (doc-with-title (doc-empty "x") "A < B")) "A < B") (content-test "page falls back to id" (content/page (doc-empty "fallback")) "fallback") (content-test "page-title from meta" (content/page-title d) "My Title") (content-test "page-title fallback id" (content/page-title (doc-empty "z")) "z") (content-test "page body reflects edits" (content/page (doc-update d "h" "text" "Bye")) "My Title

Bye

") (content-test "page multi-block body" (content/page (doc-append (doc-with-title (doc-empty "p") "T") (mk-text "x" "para"))) "T

para

")