Crates.io | mxml |
lib.rs | mxml |
version | 0.1.2 |
source | src |
created_at | 2020-06-18 22:17:13.975522 |
updated_at | 2020-06-21 01:39:19.352093 |
description | Mixin Markup Language |
homepage | |
repository | https://github.com/andrew-johnson-4/mxml |
max_upload_size | |
id | 255520 |
size | 26,753 |
like regular expressions, but for XML
mixin!(Tooltip(message),
<? +"data-toggle"="tooltip" +"data-placement"="top" +title={{message}}/>
);
fn main() {
println!("{}", Tooltip("hey!").mixin(
r#"<button type="button" class="btn btn-secondary">tooltip will be mixed in</button>"#
));
}
This library is intended for small XML snippets, not large performance sensitive XML processing.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in mxml by you, shall be dual licensed under the MIT and Apache 2.0 license without any additional terms or conditions.