Skip to main content

render_from_files

Function render_from_files 

Source
pub fn render_from_files(
    entry_path: &str,
    files: &HashMap<String, String>,
    mock_data: &Value,
    file_origins: &HashMap<String, String>,
) -> Result<String>
Expand description

Render a page from pre-collected files with live reload client and debug comments.

Delegates compilation to van_compiler, then injects the WebSocket-based live reload client.js before </body>.