Documentation
¶
Overview ¶
Package render wraps untrusted document HTML in the page that hosts it for the slashdocs app: a sandboxed iframe and the bridge that connects the document to comments, the theme, and document KV. The server and `slashdocs local` use it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSP ¶
CSP is the Content-Security-Policy of a wrapper page. Documents can load any resource, but only appOrigin can frame them.
func ValidateBridge ¶
ValidateBridge rejects an embedded bridge that is absent, stale, or corrupt. sourceHash is the fingerprint of every TypeScript source under frontend/bridge/ at build time, so a change to any bridge module invalidates an outdated bundle.
Types ¶
Click to show internal directories.
Click to hide internal directories.