Skip to main content

parse_template

Function parse_template 

Source
pub fn parse_template(
    body_src: &str,
    key: TemplateKey,
) -> Result<Template, ParseError>
Expand description

Parse a view! body (the text inside view! { … }) into a Template keyed by key. The hole indices it assigns match the compile-time macro’s, so the running binary’s compiled hole array lines up slot-for-slot.