Skip to main content

generate_f_template

Function generate_f_template 

Source
pub fn generate_f_template(
    tag_name: &str,
    html_content: &str,
    css_content: Option<&str>,
    css_strategy: CssStrategy,
) -> String
Expand description

Generate a single f-template HTML string from component data.

Used by the server to generate templates on demand for route components that weren’t encountered during initial parsing.

This uses default Link-mode CSS filenames. Call generate_f_template_with_css_options when the build uses custom CSS filename templates or a public CSS base.