Skip to main content

ComponentData

Struct ComponentData 

Source
pub struct ComponentData {
    pub template: String,
    pub css: String,
}
Expand description

Root protocol containing all fragment records. Per-component metadata keyed by tag name.

Fields§

§template: String

f-template HTML string for hydration. Populated by the FAST parser plugin at build time. Used by servers to send f-templates to the client during navigation.

§css: String

Component CSS content for the Module strategy. Contains the full CSS content when CssStrategy::Module is active. Empty for Link and Style strategies (CSS is handled via tags or inline