5 releases

0.1.2 Jun 21, 2020
0.1.1 Jun 21, 2020
0.1.0 Jun 20, 2020
0.0.2 Jun 18, 2020
0.0.1 Jun 18, 2020

#129 in Template engine

Download history 3/week @ 2021-06-04 7/week @ 2021-06-11 1/week @ 2021-06-18 3/week @ 2021-06-25 4/week @ 2021-07-02 2/week @ 2021-07-09 7/week @ 2021-07-16 1/week @ 2021-07-23 18/week @ 2021-07-30 4/week @ 2021-08-06 7/week @ 2021-08-13 3/week @ 2021-08-20 2/week @ 2021-09-10 3/week @ 2021-09-17

57 downloads per month
Used in rdxl_scaffolding

MIT/Apache

12KB
344 lines

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.

Dependencies

~3.5–4.5MB
~86K SLoC