Skip to main content

Module html

Module html 

Source
Expand description

Static HTML generator for case and entity pages.

Produces semantic HTML fragments (no <html>/<head>/<body> wrapper) suitable for embedding in a Phoenix layout. Each fragment includes data-og-* attributes on the root element for meta tag extraction, Schema.org microdata, and a <script type="application/ld+json"> block.

Structs§

HtmlConfig
Configuration for HTML generation.
TagCaseEntry
A case entry associated with a tag, used for tag page rendering.

Functions§

render_case
Generate a complete case page HTML fragment.
render_organization
Generate an organization page HTML fragment.
render_person
Generate a person page HTML fragment.
render_sitemap
Generate a sitemap XML string.
render_tag_page
Generate a tag page HTML fragment listing all cases with this tag.
render_tag_page_scoped