Sign in

    html_dsl_converter

    Contains functions to convert raw html to MoonBit code (HTML DSL)

    html
    dsl
    svg
    Download zip
    Version
    0.4.0
    License
    Apache-2.0
    Last updated
    2 months ago
    Downloads
    29

    #html_dsl_converter.mbt

    Function to parse html string and convert it into the MoonBit Html DSL


    #Installation

    Add to your moon.pkg:

    import { "kaashyapan/html_dsl_converter" }


    #Quick start

    ///|
    let html_str = "<p>Hello, MoonBit!</p>"

    ///|
    let dsl = convert_html(html_str)

    ///|
    let html_string = @html_dsl.render(dsl)

    convert_html

    fn convert_html(str : String) -> String raise
    HtmlError

    Convert raw html string to the MoonBit Html DSL

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io