Skip to main content

compile_page

Function compile_page 

Source
pub fn compile_page(
    entry_path: &str,
    files: &HashMap<String, String>,
    data_json: &str,
) -> Result<String, String>
Expand description

Compile a multi-file .van project into a full HTML page.

This is the main API: resolves imports from an in-memory file map, then renders the result into a complete HTML page.