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

#7 in #regular-expressions


Used in rdxl_scaffolding

MIT/Apache

6KB

mxml

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>"#
   ));
}

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

~1.5MB
~33K SLoC