#html #html-macro #set #belongs #rusty-html

nightly macro rusty-html-macros

This crate belongs to the rusty-html crate and implements the macros for set crate

1 unstable release

0.1.0 Jun 1, 2022

#6 in #belongs


Used in 2 crates (via rusty-html)

MIT license

5KB
94 lines

rusty-html

Rusty HTML is a html-templating/web(in progress) framework.

Example

use rusty_html::html;

fn main() {
    let links = [
        ("https://wikipedia.com", "Wikipedia"),
        ("https://twitter.com", "Twitter"),
        ("https://youtube.com", "Youtube"),
    ];

    let html = html!(
        <div>
        {
            for (link, link_title) in links {
                <a src={link}>{link_title}</a>
            }
        }
        </div>
    );

    println!("{html}");
}

License: MIT

License: MIT

Dependencies

~83KB