Skip to main content

str_to_cpp_code

Function str_to_cpp_code 

Source
pub fn str_to_cpp_code<'a>(
    root_nodes: &'a [XmlNodeChild],
    component_map: &'a ComponentMap,
) -> Result<String, CompileError>
Expand description

Compile a full HTML page to a compilable C++ Azul app.

ยงErrors

Returns an error if the XML cannot be parsed or compiled to C++ code.