meta_mantle_core library

Core platform-independent metadata models, validation, and semantic HTML rendering.

This entrypoint is completely pure Dart: it does not depend on Flutter or dart:io, and is safe to import from any client, server, or build script.

Classes

Alternative language representation for hreflang links.
AlternateUrl
Convenience subclass/alias for AlternateLink.
ElementNode
A semantic HTML element node with attributes and child nodes.
H
Factory functions for common semantic HTML tags.
HeadTag
A normalized, platform-neutral representation of one head element.
HtmlDocument
Renders a complete, valid, SEO-ready semantic HTML5 document.
HtmlNode
Base class for all HTML DOM nodes rendered by MetaMantle SSR.
HtmlSanitizer
Allowlist-based HTML sanitizer for rich text content.
JsonLd
Structured data payload for search crawlers.
MetadataRenderer
Resolves global defaults and page metadata into deterministic head tags.
MetaMantleConfig
Global defaults used to resolve page-level metadata in MetaMantle.
OpenGraph
Convenience subclass for OpenGraphMetadata.
OpenGraphMetadata
Open Graph metadata configuration.
OpenGraphType
Standard Open Graph object types.
PolicyProvenance
Diagnostic provenance record tracking where resolved metadata properties originated.
RawSafeHtmlNode
A node representing explicitly validated or sanitized raw HTML markup.
ResolvedSeoMetadata
Container for the resolved metadata and its diagnostic provenance trace.
ResourceHint
Resource hints for high-performance resource preloading and connection warmup.
RobotsDirective
Standard robots directive values and custom builders.
SeoPolicy
A policy node declaring SEO rules, defaults, and overrides at a specific tier.
SeoPolicyResolver
Centralized SEO policy resolution engine executing the 7-tier inheritance hierarchy: Global -> Application -> Tenant -> Locale -> Section -> Route -> Page Overrides.
TextNode
A node representing escaped plain text.
TwitterCard
Convenience subclass for TwitterCardMetadata.
TwitterCardMetadata
X/Twitter card metadata configuration.
TwitterCardType
Standard X/Twitter card types.
WebIcon
Icon representation for favicons, touch icons, and web manifests.
Convenience subclass/alias for WebLinkTag.
WebLinkTag
Safe custom link tag representation.
WebMetadata
Page-specific metadata. Unset values inherit from WebHeadConfig.
WebMetaTag
Safe custom metadata. Only standard text attributes are supported.

Enums

PolicyTier
Defines the policy tier in the 7-level inheritance hierarchy.
RenderingStrategy
Defines the rendering strategy for MetaMantle web applications.

Typedefs

WebHeadConfig = MetaMantleConfig
Backward compatibility alias for MetaMantleConfig.