Sign in

    ubugeeei/vapor_moon/src/runtime does not have a README file

    HydrationMode

    pub(all) enum HydrationMode {
    Manual
    Load
    Idle
    Visible
    Media(String)
    Only
    ServerDefer
    } derive(Eq, Show)

    Declarative hydration strategies encoded into SSR and DOM markers.

    TemplateRef

    pub struct TemplateRef[T] {
    name : String
    phantom : T?
    }

    Typed handle for a DOM node addressed through ref / use_template_ref.

    TemplateRef::name

    fn[T] TemplateRef::name(self : TemplateRef[T]) -> String

    Expose the raw template-ref lookup key.

    client_element_name

    fn client_element_name(component_name : String) -> String

    Map a component name to the Web Components island host tag.

    client_module_path

    fn client_module_path(component_name : String) -> String

    Map a component name to the client module path expected by the island runtime.

    make_scope_id

    fn make_scope_id(component_name : String) -> String

    Build the deterministic data-vm-scope suffix for one component.

    merge_class_names

    fn merge_class_names(parts : Array[String]) -> String

    Join class fragments while trimming empty segments.

    merge_styles

    fn merge_styles(parts : Array[String]) -> String

    Join inline style fragments into normalized semicolon-terminated CSS.

    props_to_json

    fn props_to_json(entries : Array[(String, String)]) -> String

    Serialize island props into a compact JSON object without pulling in a JSON library.

    scope_css

    fn scope_css(css : String, scope_id : String) -> String

    Scope raw CSS text by prefixing selectors with the component scope attribute.

    show_style

    fn show_style(visible : Bool, base : String) -> String

    Merge conditional visibility into an inline style string.

    use_id

    fn use_id(component_name : String, index : Int) -> String

    Generate stable element ids for compiler-emitted use_id calls.

    use_template_ref

    fn[T] use_template_ref(name : String) -> TemplateRef[T]

    Create a typed template-ref token that can be resolved later in the DOM runtime.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io