#html-templating #convert-html #template #html #maud

html2maud

html2maud is a library / cli to convert html to maud template code

9 releases

0.1.11 Feb 25, 2024
0.1.10 Nov 14, 2023
0.1.9 Jan 16, 2023

#567 in Development tools

Download history 36/week @ 2024-07-29 7/week @ 2024-09-30

118 downloads per month
Used in html2maud-bin

MIT/Apache

9KB
144 lines

html2maud

Library / CLI / GUI to convert html to maud template code.

Online version

html2maud online

Binary Usage

cargo install html2maud-bin

html2maud-bin --in my.html --out my.maud

cat my.html | html2maud-bin --stdin

Usage: html2maud [OPTIONS]

Options:
  -i, --in <input html file>
  -o, --out <output maud file>
  -s, --stdin
  -h, --help                    Print help information
html2maud-bin without parameters will start the GUI

GUI

run html2maud-bin without parameters and a basic tauri + pâro GUI will start, allowing for a faster workflow.

Library Usage

use html2maud::*;

fn main() {
    let html = "<div><p>Paragraph</p></div>";
    let maud = html2maud(html);
    println("{}", maud);
}

LICENCE

MIT or Apache 2

Dependencies

~2.3–3.5MB
~58K SLoC