Skip to main content

project_module

Function project_module 

Source
pub fn project_module(
    folder: &Folder,
    modules: &Modules,
    path: &str,
    version: Option<&str>,
) -> Option<Result<Compiled, String>>
Expand description

The project widget or helper at path in folder’s served folder, compiled, asked for at version. An import without an extension finds the .tsx or .ts beside it. It renders by name the widgets of the document whose widgets folder holds it — the entry document’s when no other names it. Err with why when it, or any helper its imports reach, doesn’t compile — the browser would only say an import failed; None when no such file is in the served folder.