maud-extensions 0.5.0

Component, inline CSS/JS, and font helper macros for Maud views.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use maud_extensions::{component, css, js};

fn main() {
    js! {
        me().class_add("ready");
    }

    let _view = component! {
        article class="card" {
            p { "valid" }
        }
    };

    css! {
        me { border: 1px solid #ddd; }
    }
}