mxml

Crates.iomxml
lib.rsmxml
version0.1.2
sourcesrc
created_at2020-06-18 22:17:13.975522
updated_at2020-06-21 01:39:19.352093
descriptionMixin Markup Language
homepage
repositoryhttps://github.com/andrew-johnson-4/mxml
max_upload_size
id255520
size26,753
Andrew Johnson (andrew-johnson-4)

documentation

README

mxml: Mixin Markup Language

Crates.IO Documentation Build Nightly Build

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.

Contributions

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.

Commit count: 20

cargo fmt