Skip to main content

compile_single

Function compile_single 

Source
pub fn compile_single(
    source: &str,
    mock_data_json: &str,
) -> Result<String, String>
Expand description

Compile a single .van file source into a full HTML page.

Convenience wrapper: wraps the source into a single-file map and calls compile_page.