Page format
Publish an SVG diagram with Sentway
Sentway serves an SVG document as its own page inside a minimal embed shell. The shell exists so the diagram has a background and fills the viewport; it adds no visible chrome of its own.
What to send
Set page_type to svg and put the SVG document in source. Sentway sanitises the SVG before serving it: script elements, event handler attributes and external references are removed. Inline styles, gradients, filters and embedded fonts survive.
Shell background
Pass shell.background as a six-digit hex colour to set the page background behind the diagram. It defaults to #ffffff. This is the only presentational control Sentway offers over served content, and it exists because an SVG with a transparent background is unreadable on an unknown backdrop.
When to choose SVG
Choose SVG for a diagram the author drew precisely: an architecture map, a floor plan, an annotated illustration. For a diagram described in text rather than drawn, use Mermaid instead.